Skip to content

Commit

Permalink
remove key.use === 'sig' check
Browse files Browse the repository at this point in the history
  • Loading branch information
iuliiasobolevska-indeed committed Jul 29, 2021
1 parent 5a88b25 commit 9091698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JwksClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports.JwksClient = class JwksClient {
}

const signingKeys = keys
.filter(key => key.use === 'sig' && key.kty === 'EC' && key.kid && (key.x && key.y))
.filter(key => key.kty === 'EC' && key.kid && (key.x && key.y))
.map(key => {
return {
kid: key.kid,
Expand All @@ -108,7 +108,7 @@ module.exports.JwksClient = class JwksClient {
*/
getSigningKey (kid, cb) {
this.logger(`Fetching signing key for '${kid}'`)

if (this.options.cache && this.cache.get(kid) !== undefined) {
const cachedKey = this.cache.get(kid)
cb(null, cachedKey)
Expand Down

0 comments on commit 9091698

Please sign in to comment.