Skip to content

Commit

Permalink
fix: outdated/wrong algorithm argument passed to jsonwebtoken (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ymirke authored Feb 6, 2024
1 parent ad0d6c0 commit d5adb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jwt/lib/verifySignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const verifySignature = (

try {
verify(jwt, privateKey, {
algorithms: ['RS256'],
algorithms: ['HS256'],
});
return true;
} catch (error) {
Expand Down

0 comments on commit d5adb68

Please sign in to comment.