Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/faster/vendor/jose/jwks/remote.ts>RemoteJWKSetOptions

A fast and optimized middleware server with an absurdly small amount of code (300 lines) built on top of Deno's native HTTP APIs with no dependencies. It also has a collection of useful middlewares: log file, serve static, CORS, session, rate limit, token, body parsers, redirect, proxy and handle upload. Fully compatible with Deno Deploy.
Latest
interface RemoteJWKSetOptions
import { type RemoteJWKSetOptions } from "https://deno.land/x/faster@v11.7/vendor/jose/jwks/remote.ts";

Options for the remote JSON Web Key Set.

Properties

optional
timeoutDuration: number

Timeout (in milliseconds) for the HTTP request. When reached the request will be aborted and the verification will fail. Default is 5000 (5 seconds).

optional
cooldownDuration: number

Duration (in milliseconds) for which no more HTTP requests will be triggered after a previous successful fetch. Default is 30000 (30 seconds).

optional
cacheMaxAge: number | Infinity

Maximum time (in milliseconds) between successful HTTP requests. Default is 600000 (10 minutes).

optional
agent: any

An instance of http.Agent or https.Agent to pass to the http.get or https.get method's options. Use when behind an http(s) proxy. This is a Node.js runtime specific option, it is ignored when used outside of Node.js runtime.

optional
headers: Record<string, string>

Headers to be sent with the HTTP request. Default is that User-Agent: jose/v${version} header is added unless the runtime is a browser in which adding an explicit headers fetch configuration would cause an unnecessary CORS preflight request.

optional
[jwksCache]: JWKSCacheInput

See jwksCache.