Overview
A Member Session begins after an end user meets the primary and secondary factor authentication requirements of an Organization. In cases where an authentication call does not satisfy the Organization’s requirements, an intermediate session is returned. This will be exchanged for a full session after the authentication flow is completed:Intermediate session
Begins if an end user has started a primary factor authentication, but isn’t fully authenticated into an organization yet.
Full session
Begins once an end user has completed all required authentication factors for an organization.
Intermediate session
An intermediate session begins when anintermediate_session_token is returned after a primary factor authenticate() call or a discovery authentication call.
It represents a temporary authentication session state of a user that hasn’t been fully authenticated into an organization yet.
Attributes
-
No organizational context
Intermediate sessions aren’t associated with any organization. A user must meet all primary and secondary authentication factors for an organization for the token to be successfully exchanged for a full Member Session with an organization. -
Fixed intermediate session duration
Intermediate session tokens are valid for 10 minutes. If the token is not exchanged for a Member Session before expiration, the end user must restart the authentication process. -
Using intermediate sessions
Intermediate sessions are used during an authentication flow to facilitate step-up primary authentication, multi-factor authentication (MFA), and the Discovery login experience.
Additional resources
Full member session
A full member session is initiated after a successful authentication call that satisfies all of an Organization’s authentication requirements. This could be directly from anauthenticate() call (e.g. magic links) for an org-specific login, from an intermediate session token exchange after a Discovery flow, or from a secondary factor authentication call (e.g. SMS OTP) for an organization that requires MFA.
These methods generate a newly minted Member Session object in the response, containing useful attributes about the member’s logged in state that can be stored as part of your application logic.
Sample authenticate response & session object
Sample authenticate response & session object
Response 200
Object 200
Attributes
-
Associated to organizations
A full session is always associated with a specificorganization_id. -
Configurable session duration
The default duration of a session is 60 minutes, which can be configured in the call initiating a session viasession_duration_minutes. -
Identifying and using sessions
Sessions are identified by asession_tokenandsession_jwt, which are used to authenticate and authorize requests between your client and server.