Skip to content

Commit

Permalink
fix: jwt algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
Nem-Tudo committed Sep 14, 2024
1 parent 523840c commit 69ddbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ app.listen(process.env.PORT, () => {

function verifyJWT(token, key) {
try {
const decoded = jwt.verify(token, key);
const decoded = jwt.verify(token, key, {algorithms: ["ES256"]});
return {
error: false,
data: decoded
Expand Down

0 comments on commit 69ddbde

Please sign in to comment.