Skip to content

Commit c53683f

Browse files
committed
readme: how to set the privacy policy url
1 parent 859a6b0 commit c53683f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Auth/README.md

Lines changed: 8 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

0 commit comments

Comments
 (0)