diff --git a/src/server/helpers/app.ts b/src/server/helpers/app.ts index a215796fd2..72722f59c9 100644 --- a/src/server/helpers/app.ts +++ b/src/server/helpers/app.ts @@ -213,7 +213,7 @@ const getJWKSKey = memoize(async () => { url: process.env.BFF_OIDC_JWKS_URL, responseType: 'json', }) - .then((response) => jose.importJWK(response.data.keys[0])); + .then((response) => jose.createLocalJWKSet(response.data)); } return getPublicKeyForDevelopment();