MCPcopy
hub / github.com/panva/jose / RemoteJWKSetOptions

Interface RemoteJWKSetOptions

src/jwks/remote.ts:254–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253/** Options for the remote JSON Web Key Set. */
254export interface RemoteJWKSetOptions {
255 /**
256 * Timeout (in milliseconds) for the HTTP request. When reached the request will be aborted and
257 * the verification will fail. Default is 5000 (5 seconds).
258 */
259 timeoutDuration?: number
260
261 /**
262 * Duration (in milliseconds) for which no more HTTP requests will be triggered after a previous
263 * successful fetch. Default is 30000 (30 seconds).
264 */
265 cooldownDuration?: number
266
267 /**
268 * Maximum time (in milliseconds) between successful HTTP requests. Default is 600000 (10
269 * minutes).
270 */
271 cacheMaxAge?: number | typeof Infinity
272
273 /** Headers to be sent with the HTTP request. */
274 headers?: Record<string, string>
275
276 /** See {@link jwksCache}. */
277 [jwksCache]?: JWKSCacheInput
278
279 /** See {@link customFetch}. */
280 [customFetch]?: FetchImplementation
281}
282
283/** See {@link jwksCache}. */
284export interface ExportedJWKSCache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…