useTrixtaAuth
A react hook that will return authentication and authorization info.
Options
roleName : string?
Optional
Trixta role name
Returns
isAuthenticated : boolean
Will be
true
if the Trixta space connected with token parameter.
hasRole : boolean
Will be
true
if the passedroleName
for the current user has access.
hasAccess : boolean
Will be
true
if thehasRole
andisAuthenticated
mentioned above istrue
.
isAuthorizing : boolean
Will be
true
if Trixta is still authorizing the above mentionedroleName
Last updated