Skip to content

docs: remember-me after the OTP and the new session ID (3.2.0) - #197

Merged
armanist merged 1 commit into
stagingfrom
docs/auth-remember-two-factor
Nov 26, 2026
Merged

armanist merged 1 commit into
stagingfrom
docs/auth-remember-two-factor

Conversation

@armanist

Copy link
Copy Markdown
Collaborator

For #196 (not closed here: merges into staging close nothing).

Framework change: quantum-php/framework#707 (PR quantum-php/framework#713).

Summary

  • Session auth adapter, "What it does": the session ID is regenerated in each of the three places a sign-in completes (signin() without two-factor authentication, verifyOtp(), and the remember cookie in user()), and the other session data is kept.
  • "Remember-me behavior": with two-factor authentication on, the remember token and cookie come only after verifyOtp() accepts the OTP, in the browser that signed in; a later sign-in without "remember me", and signout(), drop the request. The sign-out sentence moves here from "When the settings are read".
  • "Two-factor caveat": links to the flow, and states that a pending OTP blocks the remember cookie until an OTP is verified.
  • Auth usage, "Two-factor flow": the session result gets a new session ID and, with "remember me", the remember cookie; verifyOtp() is called in the browser that called signin().

Changed paths

  • v3.0/packages/auth/adapters.md
  • v3.0/packages/auth/usage.md

SUMMARY.md is unchanged: no pages were added, moved or removed.

@armanist
armanist merged commit 1861bd1 into staging Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant