Stores a session token and updates the session associated with the specified session key, or by default the active session.Documentation Index
Fetch the complete documentation index at: https://turnkey-0e7c1f5b-amir-tx-status-webhooks.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- This function parses and stores a signed JWT session token in local storage, associating it with the given session key.
- If a sessionKey is provided, the session will be stored under that key; otherwise, it will use the default session key.
- If a session already exists for the session key, its associated key pair will be deleted before storing the new session.
- After storing the session, any unused key pairs are automatically cleared from storage.
- Ensures that session management is consistent and prevents orphaned key pairs.
Package: core
Defined in: clients/core.ts:4678
A promise that resolves when the session is successfully stored.