Skip to content

Commit

Permalink
refactor: jwt verify provide algorithm (LLC-2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucuilearningpool committed Jan 3, 2023
1 parent 5c88fb6 commit a921ee2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default async (
const publicKey = `-----BEGIN CERTIFICATE-----\n${splitDER}\n-----END CERTIFICATE-----`;

try {
jwt.verify(token, publicKey);
jwt.verify(token, publicKey, { algorithms: ['none'] });
} catch {
throw new InvalidJws(originalStatement.id);
}
Expand Down

0 comments on commit a921ee2

Please sign in to comment.