mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 07:45:00 -04:00
Fixed compilation error
I thought that the previous commit would fix the issue but hadn't properly read the error.
This commit is contained in:
parent
d27094574f
commit
6456e5860f
1 changed files with 4 additions and 3 deletions
|
@ -26,8 +26,8 @@ class JWTVerify extends Operation {
|
||||||
this.infoURL = "https://wikipedia.org/wiki/JSON_Web_Token";
|
this.infoURL = "https://wikipedia.org/wiki/JSON_Web_Token";
|
||||||
this.inputType = "string";
|
this.inputType = "string";
|
||||||
this.outputType = "JSON";
|
this.outputType = "JSON";
|
||||||
this.algOptions = JWT_ALGORITHMS;
|
let algOptions = JWT_ALGORITHMS;
|
||||||
this.algOptions.push("Any");
|
algOptions.push("Any");
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
name: "Public/Secret Key",
|
name: "Public/Secret Key",
|
||||||
|
@ -37,7 +37,7 @@ class JWTVerify extends Operation {
|
||||||
{
|
{
|
||||||
name: "Algorithm",
|
name: "Algorithm",
|
||||||
type: "option",
|
type: "option",
|
||||||
value: this.algOptions
|
value: algOptions
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ class JWTVerify extends Operation {
|
||||||
break;
|
break;
|
||||||
case "None":
|
case "None":
|
||||||
algos.push("none");
|
algos.push("none");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
algos.push(alg);
|
algos.push(alg);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue