Interface: ValidateJWTAccessTokenOptions
March 19, 2026 Ā· View on GitHub
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
Properties
[allowInsecureRequests]?
⢠optional [allowInsecureRequests]?: boolean
Deprecated
[clockSkew]?
⢠optional [clockSkew]?: number
See clockSkew.
[clockTolerance]?
⢠optional [clockTolerance]?: number
See clockTolerance.
[customFetch]?
⢠optional [customFetch]?: (url, options) => Promise<Response>
See customFetch.
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | URL the request is being made sent to fetch as the resource argument |
options | CustomFetchOptions<"GET", undefined> | Options otherwise sent to fetch as the options argument |
Returns
[jwksCache]?
⢠optional [jwksCache]?: JWKSCacheInput
See jwksCache.
headers?
⢠optional headers?: Record<string, string> | [string, string][] | Headers
Headers to additionally send with the HTTP request(s) triggered by this function's invocation.
requireDPoP?
⢠optional requireDPoP?: boolean
Indicates whether DPoP use is required.
signal?
⢠optional signal?: AbortSignal | ((url) => AbortSignal)
An AbortSignal instance, or a factory returning one, to abort the HTTP request(s) triggered by this function's invocation.
Example
A 5000ms timeout AbortSignal for every request
let signal = () => AbortSignal.timeout(5_000) // Note: AbortSignal.timeout may not yet be available in all runtimes.
signingAlgorithms?
⢠optional signingAlgorithms?: string[]
Supported (or expected) JWT "alg" header parameter values for the JWT Access Token (and DPoP Proof JWTs). Default is all supported JWS Algorithms.