From 859a6b07ef6dcb8eab15c0e629757a80d540ede7 Mon Sep 17 00:00:00 2001 From: Johnson145 Date: Wed, 10 Jul 2019 12:59:13 +0200 Subject: [PATCH 1/2] readme: how to enable auto-upgrade of anonymous users --- Auth/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Auth/README.md b/Auth/README.md index 86894ee4158..dad130c4c33 100644 --- a/Auth/README.md +++ b/Auth/README.md @@ -361,6 +361,11 @@ Refer to the Objective-C and Swift samples for examples of how you can customize these views. ## Handling auto-upgrade of anonymous users +By default, the auto-upgrade of anonymous users is disabled. You can enable it +by simply changing the associated attribute of your Firebase Auth instance: +```swift +authUI?.shouldAutoUpgradeAnonymousUsers = true +``` Enabling auto-upgrade of anonymous users increases the complexity of your auth flow by adding several more edge cases that need to be handled. As opposed to From c53683fd083ec9403f3575820ae7aad88c12d789 Mon Sep 17 00:00:00 2001 From: Johnson145 Date: Wed, 10 Jul 2019 13:05:15 +0200 Subject: [PATCH 2/2] readme: how to set the privacy policy url --- Auth/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Auth/README.md b/Auth/README.md index dad130c4c33..05240a2b5f0 100644 --- a/Auth/README.md +++ b/Auth/README.md @@ -213,7 +213,7 @@ Auth.defaultAuthUI.handleOpenURL(url, sourceApplication: sourceApplication) 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. ## Customizing FirebaseUI for authentication -### Custom terms of Service (ToS) URL +### Custom Terms of Service (ToS) and privacy policy URLs The Terms of Service URL for your application, which is displayed on the email/password account creation screen, can be specified as follows: @@ -229,6 +229,13 @@ authUI?.tosurl = kFirebaseTermsOfService authUI.TOSURL = [NSURL URLWithString:@"https://example.com/tos"]; ``` +The same applies to the URL of your privacy policy: +```swift +// Swift +let kFirebasePrivacyPolicy = URL(string: "https://policies.google.com/privacy")! +authUI?.privacyPolicyURL = kFirebasePrivacyPolicy +``` + ### Custom strings You can override the default messages and prompts shown to your users. This can