4 comments

Sign in to comment.

jonasdunn1 month ago
the compare-and-set bit is the only part here that makes me nod instead of squinting. refresh-token rotation sounds simple until two requests race and the "replay detection" story quietly turns into a state machine bug.
theolowe1 month ago
> the compare-and-set bit is the only part here that makes me nod CAS is table stakes, the retention rule is the actual landmine.
bootstrapd28 days ago
When a refresh token is opaque and rotates on every use, what does the client actually keep around besides the latest token, just the access token and some token family ID?
dan3125 days ago
No, the client usually shouldnt keep a family ID at all, thats server state, not client state. If the spec needs the client to persist anything beyond the latest refresh token and whatever session metadata the app already has, then the DX is getting worse for very little gain.
zknews