Skip to content

Commit

Permalink
Update verify token
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise committed Oct 3, 2024
1 parent db5c8c3 commit aaf7772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/authorizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ function validateToken(token) {
const decodedToken = jwt.decode(token, { complete: true });
console.log(decodedToken);
const headers = decodedToken.header;
console.log(headers);
console.log('headers', headers);
const kid = headers.kid;
console.log(kid);
console.log('kid', kid);

// search for the kid in the downloaded public keys
let keyIndex = -1;
Expand Down

0 comments on commit aaf7772

Please sign in to comment.