diff --git a/lib/issuer.js b/lib/issuer.js index 48972724..4a7e5824 100644 --- a/lib/issuer.js +++ b/lib/issuer.js @@ -84,7 +84,7 @@ class Issuer { }); const jwks = processResponse(response); - const joseKeyStore = jose.JWKS.asKeyStore(jwks); + const joseKeyStore = jose.JWKS.asKeyStore(jwks, { ignoreErrors: true }); cache.set('throttle', true, 60 * 1000); instance(this).set('keystore', joseKeyStore); return joseKeyStore; diff --git a/package.json b/package.json index aeb02cd4..6849b4ec 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "test": "mocha" }, "dependencies": { - "@panva/jose": "^1.8.0", + "@panva/jose": "^1.9.0", "base64url": "^3.0.1", "got": "^9.6.0", "lodash": "^4.17.13", @@ -51,12 +51,12 @@ "@commitlint/cli": "^8.1.0", "@commitlint/config-conventional": "^8.1.0", "chai": "^4.2.0", - "eslint": "^6.2.1", + "eslint": "^6.2.2", "eslint-config-airbnb-base": "^14.0.0", "eslint-plugin-import": "^2.18.2", "husky": "^3.0.4", "mocha": "^6.2.0", - "nock": "^11.3.1", + "nock": "^11.3.2", "nyc": "^14.1.1", "readable-mock-req": "^0.2.2", "sinon": "^7.3.2",