Open
Description
There is an issue with this sign function.
You parse the JSON and then stringify it again, while this is unnecessary, it might also alter the payload.
Like changing the order of properties or losing serialization information like newlines or whitespaces.
Hence the signature will inevitably change and won't match the original.
(The same issue can happen with the header, but sadly you have no control over that.)
https://github.com/email360/ssjs-lib/blob/master/core/lib_jwt.ssjs#L184-L191
Metadata
Metadata
Assignees
Labels
No labels