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 0f710f4 commit db5c8c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions handlers/authorizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ async function batchQueryWrapper(tableName, key, values) {
}

function validateToken(token) {
console.log("validateToken");
const headers = jwt.decode(token, { complete: true }).header;
console.log("validateToken", token);
const decodedToken = jwt.decode(token, { complete: true });
console.log(decodedToken);
const headers = decodedToken.header;
console.log(headers);
const kid = headers.kid;
console.log(kid);
Expand Down

0 comments on commit db5c8c3

Please sign in to comment.