API Testing · Middle · Question 31 of 75

Why can a JWT be decoded by anyone who has it?

Show the answer

Correct answer: Its payload is Base64url-encoded, not encrypted

Explanation

So tokens must not contain secrets or personal data beyond what's needed. The signature only protects against changes.

Further reading

Problem with a question

API Testing · Middle · question 31

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz