Skip to content

Commit eb03072

Browse files
docs: update README with note about disabling email enumeration protection on firebase project
1 parent 179f5ba commit eb03072

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

FirebaseSwiftUI/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ struct ContentView: View {
132132
// Create configuration with options
133133
let configuration = AuthConfiguration(
134134
shouldAutoUpgradeAnonymousUsers: true,
135+
legacyFetchSignInWithEmail: true,
135136
tosUrl: URL(string: "https://example.com/tos"),
136137
privacyPolicyUrl: URL(string: "https://example.com/privacy"),
137138
emailLinkSignInActionCodeSettings: actionCodeSettings,
@@ -829,6 +830,7 @@ public struct AuthConfiguration {
829830
shouldHideCancelButton: Bool = false,
830831
interactiveDismissEnabled: Bool = true,
831832
shouldAutoUpgradeAnonymousUsers: Bool = false,
833+
legacyFetchSignInWithEmail: Bool = false,
832834
customStringsBundle: Bundle? = nil,
833835
tosUrl: URL? = nil,
834836
privacyPolicyUrl: URL? = nil,
@@ -850,6 +852,7 @@ public struct AuthConfiguration {
850852
| `shouldHideCancelButton` | `Bool` | `false` | When `true`, hides the cancel button in auth flows, preventing users from dismissing the UI. Useful for mandatory authentication. |
851853
| `interactiveDismissEnabled` | `Bool` | `true` | When `false`, prevents users from dismissing auth sheets by swiping down. |
852854
| `shouldAutoUpgradeAnonymousUsers` | `Bool` | `false` | When `true`, automatically links anonymous user accounts with new sign-in credentials, preserving any data associated with the anonymous session. |
855+
| `legacyFetchSignInWithEmail` | `Bool` | `false` | When `true`, wrong-provider failures can look up the email's existing sign-in methods and present a recovery modal with matching enabled sign-in options. Email enumeration protection must be disabled on your Firebase project for this to work. |
853856
| `customStringsBundle` | `Bundle?` | `nil` | Custom bundle for string localizations. Allows you to override default strings with your own translations. |
854857
| `tosUrl` | `URL?` | `nil` | URL to your Terms of Service. When both `tosUrl` and `privacyPolicyUrl` are set, links are displayed in the auth UI. |
855858
| `privacyPolicyUrl` | `URL?` | `nil` | URL to your Privacy Policy. When both `tosUrl` and `privacyPolicyUrl` are set, links are displayed in the auth UI. |

0 commit comments

Comments
 (0)