useTrixtaAccess
A react hook that will return true if the given roleName has access.
import { useTrixtaAccess } from '@trixtateam/trixta-js-core';
const hasAccess = useTrixtaAccess({ roleName });
Options
roleName : string
Trixta role name
Returns
boolean
Will be
true
if theroleName
mentioned above has access.
Last updated
Was this helpful?