API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)
useSiwxSessionStore
constuseSiwxSessionStore:UseBoundStore<WithImmer<WithPersist<StoreApi<SiwxSessionStore>,unknown>>>
Defined in: packages/siwx-react/src/sessionStore.ts:94
The primary Zustand store for SIWX session management.
Uses persist middleware to survive page reloads (sessionStorage by default),
and immer middleware for clean immutable updates.
Remarks
This store is completely independent of any backend SDK. It tracks the client-side authentication state only. Session validity against a backend is the responsibility of individual hooks.
Last updated on