mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-14 10:14:53 -04:00
Formatting
This commit is contained in:
parent
7adb820c40
commit
04db463f81
1 changed files with 7 additions and 10 deletions
|
@ -26,11 +26,11 @@ class JWTDecode extends Operation {
|
||||||
this.inputType = "string";
|
this.inputType = "string";
|
||||||
this.outputType = "JSON";
|
this.outputType = "JSON";
|
||||||
this.args = [
|
this.args = [
|
||||||
{
|
{
|
||||||
name: "Include header",
|
name: "Include header",
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
value: false
|
value: false
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
this.checks = [
|
this.checks = [
|
||||||
{
|
{
|
||||||
|
@ -54,12 +54,9 @@ class JWTDecode extends Operation {
|
||||||
json: true,
|
json: true,
|
||||||
complete: true
|
complete: true
|
||||||
});
|
});
|
||||||
if (headerInclude)
|
if (headerInclude){
|
||||||
{
|
|
||||||
return {header: decoded.header, payload: decoded.payload};
|
return {header: decoded.header, payload: decoded.payload};
|
||||||
}
|
}else{
|
||||||
else
|
|
||||||
{
|
|
||||||
return decoded.payload;
|
return decoded.payload;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue