Repository navigation
fix(auth): Sign in while already signed in goes straight to your settings - #728
Open
PiquelChips wants to merge 3 commits into
Open
PiquelChips wants to merge 3 commits into
PiquelChips wants to merge 3 commits into
Conversation
…ings Opening /login in a browser that was already signed in showed the sign-in form again with "Signed in as", as when following sourceorigin.dev's Sign in link. It now goes on to the path the page continues to, unless it says why something failed, an authorization sent it there, or the query asks for a class of authentication, as the dashboard's handoff does.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
… gone Skip the page only when it has no alert, so a missing or expired provider sign-in is still explained. Continuation::skipped names the path, and the layout and dashboard handoff tests look at the page signed out or with acr.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 22, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opening sourceorigin.dev while signed in and selecting Sign in landed on auth's sign-in page again, saying "Signed in as @handle" next to the passkey and provider buttons, as if the session had expired. It hadn't: the homepage is static and can't know you're signed in, and
/loginasked a signed-in browser to sign in again with nowhere to go.Now
/loginsends a browser that is already signed in straight on to where it was headed: the settings, or itsreturn_to. The page still shows when it explains a failure (a refused form, a provider's error, a provider sign-in gone), when an app's authorization sent the browser there because its session falls short, or when the link asks for a class of authentication, as the admin dashboard's handoff does for a passkey. To switch accounts, sign out from the settings first.Proof:
/login; signed in it landed on/settings./login?return_to=/settings/sessionswent on to the sessions page, and/login?acr=phrstill showed "Signed in as @…".layout.spec.ts(changed) andsign-in.spec.tspass against the preview.signing_in_goes_on_to_the_path_asked_forand the dashboard handoff test.GET /on web, thenGET /login 200on auth with a live session.Council review
Rounds: 2
Round 1 found that a gone provider sign-in was skipped without its message, a browser test and a dashboard test that relied on the signed-in page, and stale docs; all fixed. Round 2 left only comment wording, also fixed.
Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 and Claude Fable 5.2 (via T3 Code)
🤖 Generated with Claude Code