(...args)
| 327 | const harness = makeFetchHarness([kp.publicJwk]); |
| 328 | let hang = false; |
| 329 | const slowAfterFirst: typeof globalThis.fetch = async (...args) => { |
| 330 | if (hang) await new Promise((r) => setTimeout(r, 5_000)); |
| 331 | return harness.fetch(...args); |
| 332 | }; |
| 333 | |
| 334 | const jwks = createCachedRemoteJWKSet(jwksUrl, { |
| 335 | fetch: slowAfterFirst, |