Skip to main content

Import

Usage

Return Type

Storage<StorageItem> | null Returns the Storage instance if available, or null if not configured.

useStorageItem

Hook to retrieve a specific item from the Sequence Connect storage.

Usage

Parameters

Return Type

UseQueryResult<StorageItem[K]> Returns a react-query result containing the storage item data, with the following properties:

Notes

These hooks provide access to the storage layer used by Sequence Connect for persisting authentication data, wallet state, and other client-side storage needs. The useStorage hook is commonly used for operations that require direct access to the storage layer, such as generating authentication proofs, while useStorageItem provides a convenient way to access specific items with react-query integration.