Package: react-wallet-kit

Overview

Retrieves all sessions stored in persistent storage.
  • This function fetches all session objects currently stored by the client, including those that are not active.
  • Returns a record mapping each session key to its corresponding Session object.
  • Useful for session management, auditing, or displaying all available sessions to the user.
  • Automatically skips any session keys that do not have a valid session object.

Parameters

No parameters.

Response

A successful response returns the following fields:
returns
undefined | Record<string, Session>
required
A promise that resolves to a record of session keys and their corresponding Session objects, or undefined if no sessions exist.