Auth
getAccessToken()
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
getAccessToken()
Use nhost.auth.getAccessToken
to get the access token of the user.
const accessToken = nhost.auth.getAccessToken()