Menu

Account Erasure: Enforcing Refresh Rotation With Sliding and Absolute Expiry
📰

Account Erasure: Enforcing Refresh Rotation With Sliding and Absolute Expiry

DEV Community: authentication·ErasmusPierce7981·9 days ago
#tfbVLkIn
Long article (1744 words) — no AI summary yet.
Reading 0:00
15s threshold

Gate the provider migration on one operational test: refresh token rotation must enforce sliding session expiry and an absolute cap while account erasure prevents renewal through either identity system, including during a request already in flight. A successful deletion response alone doesn't establish that property.

TL;DR: For a Node.js application using Express, keep refresh-token rotation, sliding expiry, and the absolute session deadline in authoritative server-side state. Atomically consume each refresh token and issue its successor, setting the new idle deadline to the earlier of now plus the idle window and the original absolute deadline. Account deletion must serialize against renewal and make every session unusable. The implementation below expresses that transaction contract in Go; the same contract belongs behind the Express refresh handler.

For a B2B SaaS team moving off a managed identity provider, this is an erasure-readiness runbook.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.