Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrrt committed Nov 12, 2023
1 parent af34d6e commit 71e7ad9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vendors/jwks/jwks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ export const verifyTokenWithPublicKey = async (
jwk = publicKey;
}

let adhocKeys = opts?.adhoc || adhocJwks;

JWKS = createLocalJWKSet({
keys: !!adhocJwks ? adhocJwks: [jwk]
keys: adhocKeys ? <JWK[]>adhocKeys: [jwk]
});
} else if (opts?.jwksUri) {
JWKS = createRemoteJWKSet(new URL(opts?.jwksUri))
Expand Down

0 comments on commit 71e7ad9

Please sign in to comment.