lacewing - v2.0.1
    Preparing search index...

    Interface RemoteJWKSetOptions

    interface RemoteJWKSetOptions {
        cacheTtlSeconds?: number;
        cooldownSeconds?: number;
        fetch?: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        staleWhileErrorSeconds?: number;
        timeoutMs?: number;
    }
    Index
    cacheTtlSeconds?: number

    Cache lifetime when the response has no usable Cache-Control (default 300s).

    cooldownSeconds?: number

    Minimum interval between fetch attempts (default 30s).

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

    Fetch implementation to use instead of the global fetch. Whatever it throws reaches the caller unchanged, so a failure in your own transport stays distinguishable from a Lacewing refusal; only a failure of the global fetch becomes a JWKS_FETCH_FAILED error.

    staleWhileErrorSeconds?: number

    How long previously-good keys may keep serving once the endpoint starts failing (default 3600s). Bounded on purpose: a key rotated out because it was compromised must not stay trusted for as long as an attacker can keep the endpoint unreachable. 0 disables stale serving entirely.

    timeoutMs?: number

    Fetch timeout (default 5000ms).