fotexnet / fotexnet/react-auth

[FEATURE]: Guarding for role in withAuthGuard

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.