feat(auth): implement legacyFetchSignInWithEmail configuration option#2316
feat(auth): implement legacyFetchSignInWithEmail configuration option#2316russellwheatley wants to merge 7 commits intoversion-10.0.0-beta03from
legacyFetchSignInWithEmail configuration option#2316Conversation
There was a problem hiding this comment.
Code Review
This pull request implements a legacy recovery path for email sign-in, intended for use when email enumeration protection is disabled. It introduces the DifferentSignInMethodRequiredException and a legacyFetchSignInWithEmail configuration flag. The core logic uses the legacy fetchSignInMethodsForEmail API to suggest alternative providers when a user attempts to sign in with an incorrect method. The UI layer, including ErrorRecoveryDialog and various screens, has been updated to handle this recovery flow. Review feedback highlights a missing recovery case in the top-level FirebaseAuthScreen, a redundant check in the recovery logic, and the need to support generic OAuth providers in the provider redirection callback.
Screen recording shows my attempt at trying to sign-in with Github when I have an account with email provider only:
Screen_recording_20260420_132518.webm