@qtsurfer/sdk
    Preparing search index...

    Interface AuthOptions

    interface AuthOptions {
        baseUrl?: string;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        store?: TokenStore;
    }
    Index
    baseUrl?: string

    Base URL of the QTSurfer API. Defaults to the public production endpoint.

    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Inject a custom fetch (Node 20+, browser, or test mock).

    Type Declaration

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

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

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

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

        Returns Promise<Response>

    store?: TokenStore

    Custom token store. Defaults to InMemoryTokenStore.