Auth
getUser()
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()
- Storage
- GraphQL
- Functions
- React
- Next.js
- Vue
- React Native
Auth
getUser()
Use nhost.auth.getUser()
to get the signed-in user.
const user = nhost.auth.getUser()