Skip to main content

What is a session?

A session is a unique identifier for a user’s authenticated state within your application. It ties together the user’s identity, authentication factors, and session metadata. Once a user successfully authenticates, Stytch mints a Session object for the user—represented by two tokens:

Session represented by tokens

Session tokens should be stored client-side (usually a browser cookie) and authenticated on each request.

Session management

Stytch’s SDKs provide a session management layer that abstracts token rotation, session validation, and more:

Session lifecycle