From d5d6570264ac5272065e8f5e37002b72cf1d2b99 Mon Sep 17 00:00:00 2001 From: Marc Salisbury <49611370+indeed404@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:31:28 +0200 Subject: [PATCH] fix missing agent --- packages/access-token-jwt/src/get-key-fn.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/access-token-jwt/src/get-key-fn.ts b/packages/access-token-jwt/src/get-key-fn.ts index adc05a0..27c079f 100644 --- a/packages/access-token-jwt/src/get-key-fn.ts +++ b/packages/access-token-jwt/src/get-key-fn.ts @@ -13,10 +13,11 @@ export type JWKSOptions = Required< Pick; export default ({ - secret, + agent, cooldownDuration, timeoutDuration, cacheMaxAge, + secret }: JWKSOptions) => { let getKeyFn: GetKeyFn; let prevjwksUri: string; @@ -28,6 +29,7 @@ export default ({ if (!getKeyFn || prevjwksUri !== jwksUri) { prevjwksUri = jwksUri; getKeyFn = createRemoteJWKSet(new URL(jwksUri), { + agent, cooldownDuration, timeoutDuration, cacheMaxAge,