All jobs / Mobile developer / Networking

Mobile developer interview question · 3–5 years

On launch the app fires six requests at once. The access token has expired, and some users end up logged out.

What is happening, and what do you build?

The strongest answer

Six parallel failures each start their own refresh, and if the server rotates refresh tokens the later ones spend a token already used. Allow one refresh in flight, queue the callers, then retry each once

Why it works

Exactly — it is a concurrency bug, not an auth bug, and single-flight plus one retry is the whole fix.

What a good answer covers

Answers that fall short

Who gets asked this

More Networking questions