From d98e972e358169c8e23daf216d87e43ddd0869f2 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 3 May 2024 09:30:46 +0200 Subject: [PATCH] fix(compat): ensure WebCryptoAPI runtime imported keys are re-exportable --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index dcaf146f..3b82d118 100644 --- a/src/utils.js +++ b/src/utils.js @@ -43,7 +43,7 @@ async function retrieveSigningKeys(jwks) { for (const jwk of jwks) { try { - const key = await jose.importJWK(jwk, resolveAlg(jwk)); + const key = await jose.importJWK({ ...jwk, ext: true }, resolveAlg(jwk)); if (key.type !== 'public') { continue; }