Skip to content

Commit 7ef0d9d

Browse files
authored
Merge pull request #728 from Johnson145/readme_improvements
Readme improvements
2 parents 16db4f9 + c53683f commit 7ef0d9d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Auth/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Auth.defaultAuthUI.handleOpenURL(url, sourceApplication: sourceApplication)
213213
We support cross device email link sign in for the normal flows. It is not supported with anonymous user upgrade. By default, cross device support is enabled. You can disable it setting `forceSameDevice` to false in the `FUIEmailAuth` initializer.
214214

215215
## Customizing FirebaseUI for authentication
216-
### Custom terms of Service (ToS) URL
216+
### Custom Terms of Service (ToS) and privacy policy URLs
217217

218218
The Terms of Service URL for your application, which is displayed on the
219219
email/password account creation screen, can be specified as follows:
@@ -229,6 +229,13 @@ authUI?.tosurl = kFirebaseTermsOfService
229229
authUI.TOSURL = [NSURL URLWithString:@"https://example.com/tos"];
230230
```
231231
232+
The same applies to the URL of your privacy policy:
233+
```swift
234+
// Swift
235+
let kFirebasePrivacyPolicy = URL(string: "https://policies.google.com/privacy")!
236+
authUI?.privacyPolicyURL = kFirebasePrivacyPolicy
237+
```
238+
232239
### Custom strings
233240

234241
You can override the default messages and prompts shown to your users. This can
@@ -361,6 +368,11 @@ Refer to the Objective-C and Swift samples for examples of how you can customize
361368
these views.
362369

363370
## Handling auto-upgrade of anonymous users
371+
By default, the auto-upgrade of anonymous users is disabled. You can enable it
372+
by simply changing the associated attribute of your Firebase Auth instance:
373+
```swift
374+
authUI?.shouldAutoUpgradeAnonymousUsers = true
375+
```
364376

365377
Enabling auto-upgrade of anonymous users increases the complexity of your auth
366378
flow by adding several more edge cases that need to be handled. As opposed to

0 commit comments

Comments
 (0)