🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: JWT and API Security: all 10 questions

Quiz: JWT and API Security · Question 7 of 10

Why should a phone number never be placed in a JWT payload?

Why should a phone number never be placed in a JWT payload?

  1. A.JWTs cannot store numbers
  2. B.The payload is only encoded, so anyone holding the token can read it
  3. C.It makes the signature invalid
  4. D.Phone numbers break Base64
Answer & explanation

Correct answer: The payload is only encoded, so anyone holding the token can read it

Signing gives integrity, not secrecy.

Can you get the rest right without peeking?

Take the timed Quiz: JWT and API Security quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →