Auth
getHasuraClaims()
API Documentation
Backend Services
- Authentication
- Storage
GraphQL
- AI
Client Libraries
- JavaScript
- nhost-js
- Auth
- HasuraAuthClient
- changeEmail()
- changePassword()
- createPAT()
- getAccessToken()
- getAuthenticationStatus()
- getDecodedAccessToken()
- getHasuraClaim()
- getHasuraClaims()
- getSession()
- getUser()
- isAuthenticated()
- isAuthenticatedAsync()
- onAuthStateChanged()
- onTokenChanged()
- refreshSession()
- resetPassword()
- sendVerificationEmail()
- signIn()
- signInPAT()
- signOut()
- signUp()
- addSecurityKey()
- elevateEmailSecurityKey()
- connectProvider()
- signInEmailOTP()
- verifyEmailOTP()
- signInIdToken()
- linkIdToken()
- Storage
- GraphQL
- Functions
- React
- Next.js
- Vue
- React Native
Auth
getHasuraClaims()
Use nhost.auth.getHasuraClaims
to get the Hasura claims of the user.
const hasuraClaims = nhost.auth.getHasuraClaims()