Thankly SDK for JavaScript
    Preparing search index...

    Interface ThanklyAuth

    Cognito token management: fetch, cache, refresh, and coalesce concurrent refreshes.

    interface ThanklyAuth {
        ensureToken: () => Promise<void>;
        getCognitoAuthorizationHeader: () => string;
        getToken: () => Promise<string | null>;
    }
    Index
    ensureToken: () => Promise<void>

    Ensure a valid token exists, refreshing if necessary Uses promise coalescing to prevent duplicate requests

    getCognitoAuthorizationHeader: () => string

    Get the Cognito authorization header name

    getToken: () => Promise<string | null>

    Get the current token if valid