Package: react-wallet-kit

Overview

Clears all sessions and resets the active session state.
  • This function removes all session data from the client and persistent storage, including all associated key pairs.
  • Iterates through all stored session keys, clearing each session and deleting its corresponding API key pair.
  • After clearing, there will be no active session, and all session-related data will be removed from local storage.
  • Throws an error if no sessions exist or if there is an error during the clearing process.

Parameters

No parameters.

Response

A successful response returns the following fields:
returns
void
required
A promise that resolves when all sessions are successfully cleared.