Documentation home page
Search...
⌘K
Ask AI
Support
Dashboard
Dashboard
Search...
Navigation
Auth
getUser()
Welcome
Getting Started
Products
Platform
Reference
Blog
Overview
Backend Services
Authentication
Storage
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()
signInSecurityKey()
Storage
GraphQL
Functions
React
Next.js
Vue
React Native
CLI
Commands
Auth
getUser()
Use
nhost.auth.getUser()
to get the signed-in user.
Copy
Ask AI
const
user
=
nhost
.
auth
.
getUser
()
Was this page helpful?
Yes
No
Suggest edits
Raise issue
getSession()
isAuthenticated()
Assistant
Responses are generated using AI and may contain mistakes.