QuickBase JS SDK v2 - v2.2.2
    Preparing search index...

    Interface AuthStrategy

    Interface that all auth strategies must implement

    interface AuthStrategy {
        getAuthorizationHeader(token: string): string;
        getToken(dbid?: string): Promise<string>;
        handleAuthError(dbid?: string): Promise<boolean>;
        invalidate(dbid?: string): void;
    }

    Implemented by

    Index

    Methods

    • Get the authorization header value

      Parameters

      • token: string

      Returns string

    • Get a valid token for the given database ID

      Parameters

      • Optionaldbid: string

        The database ID (required for temp tokens)

      Returns Promise<string>

    • Handle authentication errors (e.g., refresh token on 401)

      Parameters

      • Optionaldbid: string

      Returns Promise<boolean>

      true if token was refreshed and request should be retried

    • Invalidate cached tokens (if applicable)

      Parameters

      • Optionaldbid: string

      Returns void