Skip to content

Remember the last web sign-in method - #7188

Merged
ComputelessComputer merged 2 commits into
mainfrom
fix/web-last-used-sign-in
Aug 31, 2026
Merged

Remember the last web sign-in method#7188
ComputelessComputer merged 2 commits into
mainfrom
fix/web-last-used-sign-in

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Show a browser-scoped Last used badge after successful authentication.


Note

Low Risk
Adds a non-sensitive preference cookie and touches auth success paths only; no change to credential validation or session issuance logic beyond when the cookie is set.

Overview
After a successful sign-in, the app stores the method (OAuth provider, email, or SSO) in an httpOnly cookie for up to a year and reads it on the /auth page to highlight the matching option with a Last used badge.

Server auth flows now thread a method query param through OAuth/SSO/magic-link callbacks and persist the resolved method on code exchange, password sign-in/up, and eligible OTP types—while skipping recovery and email-change flows so maintenance actions do not overwrite the remembered choice.

Reviewed by Cursor Bugbot for commit 6b0c462. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploy Preview for anarlog ready!

Name Link
🔨 Latest commit 6b0c462
🔍 Latest deploy log https://app.netlify.com/projects/anarlog/deploys/6a9513f8593bbd000803b7a6
😎 Deploy Preview https://deploy-preview-7188--anarlog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c91fe3b. Configure here.

Comment thread apps/web/src/functions/auth.ts
Show a browser-scoped Last used badge after successful authentication.
@ComputelessComputer
ComputelessComputer force-pushed the fix/web-last-used-sign-in branch from c91fe3b to 5424853 Compare August 31, 2026 05:34
Carry the attempted provider through auth callbacks so linked accounts show the correct Last used badge.
@ComputelessComputer
ComputelessComputer merged commit 92047b8 into main Aug 31, 2026
14 of 15 checks passed
@ComputelessComputer
ComputelessComputer deleted the fix/web-last-used-sign-in branch August 31, 2026 06:55
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