Skip to content

fix: OAuth and login fixes - #446

Merged
karishnu merged 2 commits into
stagingfrom
fix/cross-method-signin-auto-link
Aug 15, 2026
Merged

fix: OAuth and login fixes#446
karishnu merged 2 commits into
stagingfrom
fix/cross-method-signin-auto-link

Conversation

@karishnu

Copy link
Copy Markdown
Collaborator

No description provided.

Auto-link a verified OAuth provider to an existing account instead of
failing with a conflict, and return provider-specific messages when a
user attempts email/password auth on an OAuth-only account.

- findOrCreateOAuthUser: attach the new provider to the existing user
  (verified email) and sign them in rather than throwing 409
- login: distinguish a nonexistent email from an OAuth-only account and
  tell the user which provider to use
- register: block password signup for an OAuth-only email with a clear
  provider-specific message
- add providerLabel helper and a unit test for it
Replace the session-age delay with a CSRF-protected browser-session flow so users can connect Cloudflare immediately after signing in. Bind OAuth callbacks to the initiating session, scope PKCE cookies per flow, validate redirects, and centralize frontend initiation.
@github-actions github-actions Bot added documentation Improvements or additions to documentation worker frontend database labels Aug 15, 2026
@karishnu
karishnu merged commit 434c5b3 into staging Aug 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database documentation Improvements or additions to documentation frontend size/L worker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant