useTrixtaAuth
A react hook that will return authentication and authorization info.
import { useTrixtaAuth } from '@trixtateam/trixta-js-core';
const {
isAuthenticated,
hasRole,
hasAccess,
isAuthorizing
} = useTrixtaAuth({ roleName });
Options
Returns
Last updated
Was this helpful?