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. Attempting to call Session.fetchToken on a pending session will log a warning and return null.

See also

for a session only when status is ACTIVE.