| 252 | |
| 253 | /** Options for the remote JSON Web Key Set. */ |
| 254 | export 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}. */ |
| 284 | export interface ExportedJWKSCache { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…