Skip to content

Commit

Permalink
Update algo.
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise committed Oct 7, 2024
1 parent 3ffb8d7 commit 23d3327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/authorizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ function validateToken(token) {
console.log(keys);

let keyIndex = -1;
let alg;
for (let i = 0; i < keys.length; i++) {
if (kid === keys[i].kid) {
keyIndex = i;
alg = keys[i].alg;
break;
}
}
Expand Down

0 comments on commit 23d3327

Please sign in to comment.