Skip to content

Add linked sign-in methods in Settings with connect/unlink rules. - #18

Merged
ummaraali2 merged 2 commits into
mainfrom
feat/linked-accounts
Jun 13, 2026
Merged

Add linked sign-in methods in Settings with connect/unlink rules.#18
ummaraali2 merged 2 commits into
mainfrom
feat/linked-accounts

Conversation

@ummaraali2

@ummaraali2 ummaraali2 commented Jun 13, 2026

Copy link
Copy Markdown
Member

Users can view Google, GitHub, ORCID, and email/password connections, link new providers, and only disconnect when another sign-in method remains.

Summary

  • Settings section to view and manage sign-in methods (email/password, Google, GitHub, ORCID)
  • Connect/unlink with safeguard: at least one method must remain
  • OAuth link flow from Settings; OAuth callback double-exchange fix

Test plan

  • Open Settings → Sign-in methods; confirm current providers show as Connected
  • Connect Google/GitHub/ORCID from Settings; confirm redirect back with success notice
  • Try disconnecting your only method — should be blocked with "Required"
  • With two methods linked, disconnect one — should succeed
  • OAuth-only user with email: set password from Settings, then sign in with email
  • GitHub/Google sign-in still works (no false error after success)

Users can view Google, GitHub, ORCID, and email/password connections, link new providers, and only disconnect when another sign-in method remains.
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
postscholar Ready Ready Preview, Comment Jun 13, 2026 12:12am

@ummaraali2
ummaraali2 merged commit f04c431 into main Jun 13, 2026
4 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