Encryption (checking the token contents against the signature) works to ensure that everything in your JWT token is valid and hasn't been altered. So it's public, but you can trust it.
That’s not encryption, that’s just signing. The data in a JWT is base64-url encoded, but otherwise easily readable.
There is a standard for JWT encryption, but that’s a whole extra level of pain.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Encryption (checking the token contents against the signature) works to ensure that everything in your JWT token is valid and hasn't been altered. So it's public, but you can trust it.
That’s not encryption, that’s just signing. The data in a JWT is base64-url encoded, but otherwise easily readable.
There is a standard for JWT encryption, but that’s a whole extra level of pain.