You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behaviour you are seeing is in line with the JWT RFC. The payload is required to be a "valid JSON object", in this case it's a JSON string.
If you want to have custom behaviours when it comes to encoding and decoding there is something in the making in #460. But until that is finished the payload given will always be represented as a JSON object.
payload = "test"
token = JWT.encode payload, rsa_private_key, 'RS256'
when I paste the token to
https://dinochiesa.github.io/jwt/
I am getting
"test"
It cannot decode it to as a raw text
test
** without the double quote
The text was updated successfully, but these errors were encountered: