Skip to content

JWT Payloads are missing using EncryptJWT #645

Closed Locked Answered by panva
cLonata asked this question in Q&A
Discussion options

You must be logged in to vote

EncryptJWT produces a JWE style JWT, which is, well, actually encrypted and encoded suitable for encrypting your sessions that only you can decrypt wit. jwt.io does not support JWE tokens

SignJWT, far more commonly used (and misused) produces a JWS style JWT, which is, well, signed and encoded.

You're maybe thinking of signing a jwt, not encrypting it? I don't get the question otherwise. Yes the jwt is encrypted and so obviously its payload cannot be read without decrypting first.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cLonata
Comment options

@panva
Comment options

Answer selected by cLonata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants