Skip to main content
To get the active Session for the currently signed in User, use the useStytchSession hook. If no User is signed in, the returned value will be null. In non-React environments, use the session.getSync method to get the Session.

Return Value

object | null
The current Session.
boolean
Whether the Session data is from persistent storage.