@mywebapi.com/sdk - v0.3.5
    Preparing search index...

    Interface ClientCredentialsOptions

    interface ClientCredentialsOptions {
        allowInsecureLoopback?: boolean;
        clientId: string;
        clientSecret: string;
        clockSkewSeconds?: number;
        fetch?: typeof fetch;
        identityUrl: string;
        scopes?: readonly string[];
        timeoutMs?: number;
    }
    Index
    allowInsecureLoopback?: boolean

    Only tests may opt into plain HTTP on loopback hosts.

    clientId: string
    clientSecret: string
    clockSkewSeconds?: number

    Treat a token as expired this many seconds before its true expiry.

    fetch?: typeof fetch

    Inject a custom fetch (tests, instrumentation). Defaults to global fetch.

    identityUrl: string

    IdentityServer base URL. Discovery is resolved below this origin.

    scopes?: readonly string[]
    timeoutMs?: number

    Per-discovery/token-request deadline. Defaults to 30 seconds.