Preparing search index...
The search index is not available
@nichitaa/auth-react-router
@nichitaa/auth-react-router
useHasRoles
Function useHasRoles
use
Has
Roles
(
__namedParameters
)
:
boolean
Hook check if user has required role or not
Parameters
__namedParameters
:
Pick
<
RouteProps
,
"roles"
|
"allRolesRequired"
>
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@nichitaa/auth-react-router
AuthReactRouterProps
FallbackProps
RouteProps
RoutesConfig
AuthReactRouter
RoutesRoot
useAuthReactRouter
useHasRoles
Generated using
TypeDoc
Hook check if user has required role or not