- This function retrieves the session object from storage, using the provided session key or, if not specified, the current active session key.
- If no session key is provided and there is no active session, it returns undefined.
- Returns the session details, including public key, organization ID, user ID, and expiration.
Package: core
Defined in: clients/core.ts:4860
A promise that resolves to a
Session object containing the session details, or undefined if not found.