Formatting
This commit is contained in:
parent
7adb820c40
commit
04db463f81
@ -26,11 +26,11 @@ class JWTDecode extends Operation {
|
||||
this.inputType = "string";
|
||||
this.outputType = "JSON";
|
||||
this.args = [
|
||||
{
|
||||
name: "Include header",
|
||||
type: "boolean",
|
||||
value: false
|
||||
}
|
||||
{
|
||||
name: "Include header",
|
||||
type: "boolean",
|
||||
value: false
|
||||
}
|
||||
];
|
||||
this.checks = [
|
||||
{
|
||||
@ -54,12 +54,9 @@ class JWTDecode extends Operation {
|
||||
json: true,
|
||||
complete: true
|
||||
});
|
||||
if (headerInclude)
|
||||
{
|
||||
if (headerInclude){
|
||||
return {header: decoded.header, payload: decoded.payload};
|
||||
}
|
||||
else
|
||||
{
|
||||
}else{
|
||||
return decoded.payload;
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user