IFClite TypeScript API
    Preparing search index...

    Interface TokenManagerConfig

    interface TokenManagerConfig {
        clientId: string;
        fetch: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        now?: () => number;
        refreshSkewMs?: number;
        storage: TokenStorage;
        storageKey: string;
        tokenEndpoint: string;
    }
    Index
    clientId: string
    fetch: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    now?: () => number
    refreshSkewMs?: number

    Refresh this many ms before the token's actual expiry, to absorb the refresh request's own latency and clock skew between this client and the authorization server. Default 60s.

    storage: TokenStorage
    storageKey: string

    Storage key this manager reads/writes. Callers running more than one provider/account through the same TokenStorage must namespace this themselves (e.g. "<provider>:<accountId>").

    tokenEndpoint: string