Returns true when the authenticated user holds the given role.
true
const canSeePublic = useHasRole(ROLE_PUBLIC_FILES); Copy
const canSeePublic = useHasRole(ROLE_PUBLIC_FILES);
Returns
truewhen the authenticated user holds the given role.