Overview

Clears the session associated with the specified session key, or the active session by default.
  • This function deletes the session and its associated key pair from storage.
  • If a sessionKey is provided, it will clear the session under that key; otherwise, it will clear the default (active) session.
  • Removes the session data from local storage and deletes the corresponding API key pair from the key store.
  • Throws an error if the session does not exist or if there is an error during the clearing process.

Package: core

Defined in: core.ts:3575

Parameters

params
object

Response

A successful response returns the following fields:
returns
void
required
A promise that resolves when the session is successfully cleared.