Repository navigation
v1.0.4
v1.0.4 - Support for Multiple Roles in Authorization Checks 馃搱
Summary
This release enhances the useAuthorization hook and AuthorizedContent component to support multiple roles for access control. You can now pass an array of roles to check if the user has any of the specified roles for an entity. Additionally, a loading state is introduced to handle situations where user entities are not yet fully loaded.
Key Features
- useAuthorization now accepts a single role or an array of roles for more flexible permission checks.
- AuthorizedContent supports multiple role checks and provides an optional loading prop to display content while user entities are being fetched.
- Improved handling of asynchronous loading states to ensure proper access control flow.
This update improves the flexibility and robustness of the access control system, making it easier to handle complex authorization scenarios.