@grow-codes/oidc - v0.1.2
    Preparing search index...

    Interface VerifierOptions

    Options of a Verifier.

    interface VerifierOptions {
        algorithms?: readonly SigningAlgorithm[];
        audience: string;
        clockSkewMs?: number;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        httpTimeoutMs?: number;
        issuer: string;
        jwksCacheTtlMs?: number;
        jwksRefreshCooldownMs?: number;
        jwksUrl?: string;
        now?: () => number;
        rolesClaim?: string;
    }
    Index
    algorithms?: readonly SigningAlgorithm[]

    Accepted algorithms. Default: all of DEFAULT_ALGORITHMS.

    audience: string

    Expected aud (the token's aud must contain it).

    clockSkewMs?: number

    Clock skew tolerance in milliseconds. Default 60 000.

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

    fetch implementation (tests, proxies). Default globalThis.fetch.

    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>

    httpTimeoutMs?: number

    Timeout of discovery/JWKS requests in milliseconds. Default 10 000.

    issuer: string

    Expected iss (exact match, except that trailing slashes on either side are ignored). Discovery uses <issuer without trailing slashes>/.well-known/openid-configuration.

    jwksCacheTtlMs?: number

    JWKS cache lifetime in milliseconds. Default 600 000.

    jwksRefreshCooldownMs?: number

    Minimum interval between unknown-kid refetches in milliseconds. Default 30 000.

    jwksUrl?: string

    JWKS URL; skips discovery when set.

    now?: () => number

    Clock in epoch milliseconds (tests). Default Date.now.

    rolesClaim?: string

    Claim (or dotted path such as realm_access.roles) holding the roles. Default roles.