| Database read | Only verifier hashes are stored. | Device rows expose user agent, IP address and label. |
| Cookie theft | The token rotates on every refresh. Devices have an idle timeout and an absolute lifetime counted from the original sign-in. Users and your server can revoke a device. | Until it rotates or ends, a stolen remember cookie can mint a session. Tokens are not bound to an IP address or a device key. |
| Replay of an old token | A token older than the previous one, or a previous one whose successor was used, revokes the device and its session, writes session.reuse_detected and calls onReuse. | See the grace window and lost response items below. |
| Parallel refreshes | One conditional update per rotation, so instances agree on a single successor. Requests inside the grace window get identical cookies without any plain text token being stored. | A thief inside the window looks like a second tab. |
| CSRF on refresh | POST only, with a required trusted Origin or Referer, or Sec-Fetch-Site: same-origin. | Origins you list as trusted may refresh. |
| Planted remember cookie on sign-in | Routes that answer with a token in JSON set the remember cookie on POST only for JSON requests that name no untrusted origin, on GET only for requests from a trusted source, for One Tap after its double submit check, or, for a link opened from email, on a choice the same browser made earlier. | Anyone who can write cookies for your domain, such as a hostile sibling subdomain, is outside what cookies can defend against. |
| Planted or stale intent | The intent cookie is bound to the flow that set it and dropped when another sign-in starts. | |
| Account switching on a shared browser | A new sign-in ends the previously remembered device, and a refresh never changes the user of a live session. | |
| Interception in transit | With an https base URL, refresh over plain http is refused. | A trusted proxy is believed about the original protocol. |
| Session fixation | Remember tokens are minted by the server for a session it issued. Each refresh creates a new session id and revokes the old session. | |
| Quiet privilege gain | A refreshed session keeps the original methods, authentication time and sign-in time. It is never elevated or counted as fresh. | A refresh does not repeat the second factor. |
| Access after the account changes | Sign-out, revocation, password change and reset, TOTP removal, ban, forced password change, deletion and SCIM deprovisioning end devices. Every rotation or replay rechecks the user and runs check. A changed password hash or TOTP enrolment is also noticed at the next refresh. | See revocations outside theAuth below. |
| Sign-out racing a refresh | The device is revoked before its session. A refresh that loses the race fails its conditional update, or sees the revocation on its final read and revokes the session it made. | |
| Forced sign-out by guessing | Ending a device needs a token from its history, a session of its owner or server side access. A wrong verifier revokes nothing, and the refresh route is rate limited. | Whoever holds any past token of a device can end it. That is the intended response to theft. |
| Outage turned into mass sign-out | Storage errors and check errors answer refresh_unavailable and revoke nothing. | Users cannot refresh until the dependency returns. |
| Secret compromise | The secret alone yields no session: stored hashes cannot be reversed, and derivation also needs a presented token. previousSecrets allows rotation without downtime. | The secret together with any past token of a device lets an attacker compute later tokens derived under it. Replace the secret without keeping the old one and revoke the remembered devices. |