learn hapi — Encrypt the JWT Payload (The Simple Way)
All the previous JWT tutorials use a cryptographic signing to verify the token’s validity. Created tokens didn’t use any payload encryption. In case an attacker has access to a user’s JWT, they can seamlessly read the token payload. Verifying JWTs ensures that the requesting user sends a …
Continue Reading