One-shot token refresh under concurrent requests
Task
Ten requests get a 401 at the same time. The token must be refreshed once, not ten times, and all ten must wait for the new token and retry.
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep