Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which statement about JWT authentication is correct?

  1. A JWTs are encrypted by default and safe to store any data in
  2. B JWTs are signed but not encrypted, so the payload is readable by anyone holding the token
  3. C JWTs cannot expire
  4. D JWTs must be stored in localStorage
Answer

JWTs are signed but not encrypted, so the payload is readable by anyone holding the token

A standard JWT payload is base64-encoded, not encrypted. Never place sensitive data in it, and keep expiry times short.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as