Skip to content

Commit

Permalink
Merge pull request Authress#26 from antonkatz/patch-1
Browse files Browse the repository at this point in the history
Fix: unexpected verification error
  • Loading branch information
wparad authored Feb 25, 2023
2 parents 0f272c6 + 9f68cf6 commit a5cb71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenVerifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function getPublicKey(jwkKeyListUrl, kid) {
}
}

module.exports = async function(authressCustomDomain, requestToken, options = { expectedPublicKey: {}, verifierOptions: {} }) {
module.exports = async function(authressCustomDomain, requestToken, options = { expectedPublicKey: null, verifierOptions: {} }) {
if (!requestToken) {
const error = new Error('Unauthorized');
error.code = 'Unauthorized';
Expand Down

0 comments on commit a5cb71b

Please sign in to comment.