IFClite TypeScript API
    Preparing search index...

    Interface ExchangeAuthorizationCodeParams

    interface ExchangeAuthorizationCodeParams {
        clientId: string;
        code: string;
        codeVerifier: string;
        fetch: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        now?: () => number;
        redirectUri: string;
        tokenEndpoint: string;
    }
    Index
    clientId: string
    code: string
    codeVerifier: string
    fetch: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Injected fetch — never global fetch directly, so this stays testable without a real network call and so a caller can route it through whatever CORS/relay layer its environment needs.

    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
    redirectUri: string
    tokenEndpoint: string