LedeWire API key that identifies the store. Obtained from the LedeWire merchant dashboard.
OptionalbaseOverride the API base URL.
Defaults to https://api.ledewire.com.
OptionalonCalled when the user's session expires and cannot be refreshed. Use this to show a re-authentication prompt.
OptionalstorageToken storage adapter. Defaults to MemoryTokenStorage (in-memory, most secure).
To persist sessions across page reloads, use the built-in
localStorageAdapter:
import { init, localStorageAdapter } from '@ledewire/browser'
const lw = init({ apiKey: '...', storage: localStorageAdapter() })
Configuration options for the LedeWire browser client.