Skip to content

fix(auth): Google OAuth email_verified + no silent merge - #350

Merged
ShreeChaturvedi merged 1 commit into
mainfrom
fix/343-oauth-account-takeover
Aug 3, 2026
Merged

ShreeChaturvedi merged 1 commit into
mainfrom
fix/343-oauth-account-takeover

Conversation

@ShreeChaturvedi

Copy link
Copy Markdown
Owner

Summary

  • Require `verified_email` from Google userinfo.
  • Block silent merge into unverified password accounts (409 with guidance).
  • Unit tests for reject / block / allow branches.

Fixes #343

Reject OAuth when Google reports verified_email=false. Do not merge
OAuth into an existing password account unless the local email is
already verified. Add unit tests for callback branches.

Fixes #343
@ShreeChaturvedi
ShreeChaturvedi merged commit 153db68 into main Aug 3, 2026
@ShreeChaturvedi
ShreeChaturvedi deleted the fix/343-oauth-account-takeover branch August 3, 2026 21:18
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.

fix(auth): Google OAuth silently merges into password accounts; email_verified never checked (account takeover)

1 participant