Fixed compilation warnings
This commit is contained in:
parent
da77362b14
commit
44af3fee38
@ -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 });
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user