Function: useHasRole()
ts
function useHasRole(role): boolean;Defined in: packages/react/src/context.tsx:67
true if the user has the role — or ANY of the roles when given an array.
Parameters
| Parameter | Type |
|---|---|
role | Many<string> |
Returns
boolean
