Interface for pluggable token storage adapters.
Implement this to persist tokens across page loads or in a server-side store.
Example
// Persist across tabs and browser restarts (browser only) import { localStorageAdapter } from'@ledewire/browser' constlw = init({ apiKey, storage:localStorageAdapter() })
Example
// Persist within the current tab only — cleared on tab close (browser only) import { sessionStorageAdapter } from'@ledewire/browser' constlw = init({ apiKey, storage:sessionStorageAdapter() })
Interface for pluggable token storage adapters. Implement this to persist tokens across page loads or in a server-side store.
Example
Example