@koduhai/mcp-kit
    Preparing search index...

    Interface ClientCredentialsOptions

    interface ClientCredentialsOptions {
        audience?: string;
        clientId: string;
        clientSecret: string;
        fetch?: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        now?: () => number;
        refreshSkewSeconds?: number;
        retries?: number;
        retryBaseDelayMs?: number;
        scope?: string;
        timeoutMs?: number;
        tokenUrl: string;
    }
    Index

    Properties

    audience?: string

    RFC 8707 audience / resource indicator, if your IdP needs it (e.g. Auth0).

    clientId: string
    clientSecret: string
    fetch?: (input: string | URL | Request, init?: RequestInit) => Promise<Response>

    Injectable for tests.

    now?: () => number

    Injectable clock (ms).

    refreshSkewSeconds?: number

    Refresh this many seconds before the token actually expires. Default 60.

    retries?: number

    Retries for transient token-endpoint failures (network, 429, 5xx). Default 0.

    retryBaseDelayMs?: number

    Base backoff (ms), doubled each retry. Default 200.

    scope?: string

    Space-delimited scopes to request.

    timeoutMs?: number

    Timeout (ms) for the token request. Default 10000. Pass 0 to disable.

    tokenUrl: string

    The OAuth token endpoint (e.g. https://issuer/oauth/token).