Overview
Smart Account Kit needs to persist passkey credentials and session data across page loads. It does this through aStorageAdapter interface with three built-in implementations.
Built-in Adapters
IndexedDBStorage (Recommended)
Uses the browser’s IndexedDB API. Best for production web apps - supports large payloads and works across tabs.LocalStorageAdapter
Useswindow.localStorage. Simpler fallback for environments where IndexedDB is unavailable.
MemoryStorage
Stores credentials in memory only - data is lost on page reload. Use for testing.Custom Adapter
Implement theStorageAdapter interface to use any backend (e.g. a server-side store, encrypted storage, or React Native AsyncStorage):
What Gets Stored
Session data is cleared by
kit.disconnect(). Credentials persist until explicitly deleted via kit.credentials.delete().