@qtsurfer/sdk
    Preparing search index...

    Interface TokenStore

    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.

    interface TokenStore {
        clear(): void | Promise<void>;
        load(): AuthTokenResponse | Promise<AuthTokenResponse | null> | null;
        save(token: AuthTokenResponse): void | Promise<void>;
    }

    Implemented by

    Index