The SDK ships an InMemoryTokenStore by default. Adopters can
implement this contract to back tokens by browser localStorage, an
on-disk file, a secret manager, etc.
The SDK calls load once per session-startup to seed a cached
token (if any), save after every successful authenticate() / refresh,
and clear when the session is explicitly invalidated.
Pluggable token persistence interface.
The SDK ships an InMemoryTokenStore by default. Adopters can implement this contract to back tokens by browser
localStorage, an on-disk file, a secret manager, etc.The SDK calls load once per session-startup to seed a cached token (if any), save after every successful
authenticate()/ refresh, and clear when the session is explicitly invalidated.