getMiniSessionAuth()
getMiniSessionAuth(
connection,store):Promise<MiniSessionAuth>
Defined in: packages/quasar-sdk/src/utils/session.ts:50
High-level orchestrator to retrieve an existing Mini-Session or trigger a new signature.
This function checks the provided store for a valid, non-expired session matching the current wallet connection. If no session is found or it has expired, it triggers a signature request through the wallet.
Parameters
connection
The current active wallet connection data (address, signer, etc).
store
A store implementation (Zustand or compatible) for session persistence.
miniSession
MiniSessionAuth | null
setMiniSession
(session) => void
Returns
Promise<MiniSessionAuth>
A promise resolving to a valid MiniSessionAuth object.
Throws
If the wallet is disconnected or signing fails.
Last updated on