Skip to content

Commit

Permalink
fix: πŸ› issue where we did not return anything (#68)
Browse files Browse the repository at this point in the history
jwksKey was always returning an empty string
  • Loading branch information
raduachim authored Dec 11, 2019
1 parent 625a112 commit 69e7bfa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/keyProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,7 @@ class KeyProvider {
}

async jwksKey (kid) {
let key
if (kid === 'client_key') {
key = this.clientKey
} else {
key = await this.load(`${KEY_PREFIX}${kid}`)
}
const key = await this.getKey(kid)
return key && toPublicKey(key)
}

Expand Down

0 comments on commit 69e7bfa

Please sign in to comment.