the.bay.news

Five tabs open, one refresh token — the race nobody noticed

DEV Community
Five tabs open, one refresh token — the race nobody noticed
Users with multiple tabs open triggered a silent race: every tab refreshed the same expiring auth token at once, and the server started invalidating its own sessions. navigator.locks fixes it with a real mutex, no polling or localStorage hacks required.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.