From d27094574f559635ad26925f7d2329434d46727f Mon Sep 17 00:00:00 2001 From: Michael Rowley Date: Thu, 30 Dec 2021 20:45:37 +0000 Subject: [PATCH] Update JWTVerify.mjs --- src/core/operations/JWTVerify.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/operations/JWTVerify.mjs b/src/core/operations/JWTVerify.mjs index 71859619..2fe09c34 100644 --- a/src/core/operations/JWTVerify.mjs +++ b/src/core/operations/JWTVerify.mjs @@ -26,8 +26,8 @@ class JWTVerify extends Operation { this.infoURL = "https://wikipedia.org/wiki/JSON_Web_Token"; this.inputType = "string"; this.outputType = "JSON"; - let algOptions = JWT_ALGORITHMS.slice(0, JWT_ALGORITHMS.length - 1); - algOptions.push("Any"); + this.algOptions = JWT_ALGORITHMS; + this.algOptions.push("Any"); this.args = [ { name: "Public/Secret Key", @@ -37,7 +37,7 @@ class JWTVerify extends Operation { { name: "Algorithm", type: "option", - value: algOptions + value: this.algOptions } ]; }