Skip to content

Commit

Permalink
fix: adding rs256 as allowed algrothim (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
manchuck authored Feb 8, 2024
1 parent 935a20c commit 4e3bd8a
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: ['HS256'],
algorithms: ['RS256', 'HS256'],
});
return true;
} catch (error) {
Expand Down

0 comments on commit 4e3bd8a

Please sign in to comment.