Skip to content

Commit aa41e6f

Browse files
Update MIGRATION.md to show this is needed when email enumeration protection is enabled
Co-authored-by: Jeff <3759507+jhuleatt@users.noreply.github.com>
1 parent fb73926 commit aa41e6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ Firebase Auth returns a generic `auth/invalid-credential` error (or the legacy `
391391

392392
**In v6**, FirebaseUI worked around this by calling `fetchSignInMethodsForEmail()` behind the scenes. When a credential error occurred, it fetched the providers for that email and presented the user with the appropriate sign-in method.
393393

394-
**In v7**, `fetchSignInMethodsForEmail()` has been deprecated by Firebase and is no longer called. Google deprecated this method because returning which providers are associated with an email address is a potential privacy and security risk — it allows an unauthenticated caller to enumerate which accounts (and therefore which email addresses) exist in your project.
394+
**In v7**, `fetchSignInMethodsForEmail()` is no longer called because Firebase projects now have [email enumeration protection](https://docs.cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) enabled by default, and calls to `fetchSignInMethodsForEmail()` fail when email enumeration protection is enabled.
395395

396396
### The problem with the deprecated approach
397397

0 commit comments

Comments
 (0)