Skip to content

fix: switch Firebase OAuth from signInWithPopup to signInWithRedirect#8

Merged
AlexLopezGomez merged 1 commit into
mainfrom
dev
Mar 21, 2026
Merged

fix: switch Firebase OAuth from signInWithPopup to signInWithRedirect#8
AlexLopezGomez merged 1 commit into
mainfrom
dev

Conversation

@AlexLopezGomez
Copy link
Copy Markdown
Owner

signInWithPopup is unreliable in production — popup blockers, privacy settings, and cross-window timing all cause auth/popup-closed-by-user. signInWithRedirect navigates the page to Firebase's auth handler and back; getRedirectResult() in the init useEffect captures the credential on return and exchanges it with the backend session API.

Summary

  • What problem does this change solve?
  • Why was this approach chosen?

Changes

  • Describe the main implementation changes

Validation

  • Tested locally
  • Updated docs if needed
  • Updated CHANGELOG.md if needed

Notes for Reviewers

  • Call out any risks, follow-ups, or areas where review context helps

signInWithPopup is unreliable in production — popup blockers, privacy
settings, and cross-window timing all cause auth/popup-closed-by-user.
signInWithRedirect navigates the page to Firebase's auth handler and back;
getRedirectResult() in the init useEffect captures the credential on return
and exchanges it with the backend session API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AlexLopezGomez AlexLopezGomez merged commit 7e7f2a4 into main Mar 21, 2026
1 of 5 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