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 23d3327 commit f3caa67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/authorizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function validateToken(token) {

console.log(decodedSignature);
// verify the signature
const verify = crypto.createVerify('SHA256');
const verify = crypto.createVerify(alg);
verify.update(message);
verify.end();
if (!verify.verify(publicKey, decodedSignature)) {
Expand Down

0 comments on commit f3caa67

Please sign in to comment.