Overview

Retrieves the session associated with the specified session key, or the active session by default.
  • 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: core.ts:3728

Parameters

params
object

Response

A successful response returns the following fields:
returns
undefined | Session
required
A promise that resolves to a Session object containing the session details, or undefined if not found.