fotexnet / fotexnet/react-auth
[FEATURE]: Guarding for role in withAuthGuard
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the problem you want to solve with this feature
`withAuthGuard` higher-order component should be able to guard against user roles.
### Describe the solution you'd like
Extend the API to accept a `roles` array which would be checked on the user object.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.