loginWithPasskey(), the SDK stores the session and active client in localStorage. The signing key material remains securely stored in the browser’s IndexedDB and is never extractable. 0xkey uses this public key to scope and encrypt the session to the appropriate user.
For custom UI without React, see @0xkey-io/core — session and stamper setup is handled by ZeroXKeyClient after init().
Steps using @0xkey-io/react-wallet-kit
1
Initialize the React Provider
2
Login with a Passkey and Create a Session
3
Use the session to make requests
getActiveClient() returns the currently active client (e.g. IndexedDb-backed), refreshing automatically if needed.