← Quiz: Security and JWT: all 10 questions
Quiz: Security and JWT · Question 6 of 10
A token's payload is changed by one character in transit. What happens when the API checks it?
A token's payload is changed by one character in transit. What happens when the API checks it?
- A.The changed claims are accepted
- B.Only the expiry is checked
- C.The signature check fails, so the request is rejected
- D.The server repairs the token
Answer & explanation
Correct answer: The signature check fails, so the request is rejected
The signature covers the header and payload, so any change breaks it.
Can you get the rest right without peeking?
Take the timed Quiz: Security and JWT quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →