Arize Phoenix TS
    Preparing search index...
    interface AuthFetchOptions {
        fetch?: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        getAccessToken: (
            options: { forceRefresh: boolean },
        ) => string | Promise<string>;
        onUnauthorized?: (response: Response) => void | Promise<void>;
    }
    Index
    fetch?: (input: string | URL | Request, init?: RequestInit) => Promise<Response>

    Fetch implementation used to send requests. Defaults to global fetch.

    getAccessToken: (options: { forceRefresh: boolean }) => string | Promise<string>

    Return an access token for a request.

    When forceRefresh is true, the previous token was rejected with a 401 and the provider should refresh it before returning. Providers own token storage and refresh-token rotation.

    onUnauthorized?: (response: Response) => void | Promise<void>

    Called when the request is still unauthorized after one refresh.