session

The current user session, regardless of status.

Returns the session matching Client.lastActiveSessionId from all sessions, including pending sessions. This allows users with pending sessions to see their profile while completing required tasks. Returns null when no session exists or if the SDK is not initialized.

Note: Sessions with status Session.SessionStatus.PENDING cannot issue session tokens. Calling Session.fetchToken on a pending session logs a warning and returns a ClerkResult.Failure whose error code is session_pending.

See also

for a session only when status is ACTIVE.