API Testing · Junior · Question 74 of 75

What should happen when a request uses an expired token?

Show the answer

Correct answer: 401 with a clear error, and no data returned

Explanation

Testers check expired, malformed, revoked and missing tokens. Each should be rejected without leaking data.

Further reading

Problem with a question

API Testing · Junior · question 74

Test yourself

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

Take this quiz