Skip to main content
To get the currently signed in User, use the useStytchUser hook. If no User is signed in, the user object will be null. In non-React environments, use the user.getSync method to get the User.

Return Value

user
object | null
The current User.
fromCache
boolean
Whether the User data is from persistent storage.