@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface ExchangeClientCredentialsOptions

    interface ExchangeClientCredentialsOptions {
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        timeoutMs?: number;
        allowPrivateIp?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

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

    Custom fetch implementation (default: global fetch). Primarily a testing hook — lets unit tests stub the authorization server without intercepting the global.

    Type Declaration

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

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

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

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

        Returns Promise<Response>

    timeoutMs?: number

    Request timeout in milliseconds (default: 30_000). Guards against a silently hung authorization server blocking the caller indefinitely.

    allowPrivateIp?: boolean

    Allow token_endpoint to resolve to a private / loopback IP address. Default: false (SSRF guard). The CLI opts in because the operator is explicitly configuring the endpoint; hosted consumers accepting user-supplied configs should leave this off.