mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-14 10:14:53 -04:00
Change to JWT Decode to include header
This commit is contained in:
parent
411f78d27a
commit
2058f8a1eb
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ class JWTDecode extends Operation {
|
||||||
json: true,
|
json: true,
|
||||||
complete: true
|
complete: true
|
||||||
});
|
});
|
||||||
|
|
||||||
return decoded.payload;
|
return {header: decoded.header, payload: decoded.payload};
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new OperationError(err);
|
throw new OperationError(err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue