Fixed compilation warnings

This commit is contained in:
Michael Rowley 2022-03-22 08:14:06 +00:00
parent da77362b14
commit 44af3fee38

View file

@ -48,7 +48,7 @@ class JWTVerify extends Operation {
*/ */
run(input, args) { run(input, args) {
const [key, alg] = args; const [key, alg] = args;
let algos = (alg == "Any" ? JWT_ALGORITHMS : alg); const algos = (alg === "Any" ? JWT_ALGORITHMS : alg);
try { try {
const verified = jwt.verify(input, key, { algorithms: algos }); const verified = jwt.verify(input, key, { algorithms: algos });