File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ public struct AuthConfiguration {
75
75
// custom string bundle for string localizations
76
76
let customStringsBundle: Bundle?
77
77
// terms of service URL
78
- let tosUrl: URL
78
+ let tosUrl: URL?
79
79
// privacy policy URL
80
- let privacyPolicyUrl: URL
80
+ let privacyPolicyUrl: URL?
81
81
// action code settings for email sign in link
82
82
let emailLinkSignInActionCodeSettings: ActionCodeSettings?
83
83
// action code settings verifying email address
@@ -87,13 +87,15 @@ public struct AuthConfiguration {
87
87
interactiveDismissEnabled : Bool = true ,
88
88
shouldAutoUpgradeAnonymousUsers : Bool = false ,
89
89
customStringsBundle : Bundle? = nil ,
90
- tosUrl : URL = URL ( string : " https://example.com/tos " ) ! ,
91
- privacyPolicyUrl : URL = URL ( string : " https://example.com/privacy " ) ! ,
90
+ tosUrl : URL? = nil ,
91
+ privacyPolicyUrl : URL? = nil ,
92
92
emailLinkSignInActionCodeSettings : ActionCodeSettings? = nil ,
93
93
verifyEmailActionCodeSettings : ActionCodeSettings? = nil )
94
94
}
95
95
```
96
96
97
+ > Note: Both ` tosUrl ` and ` privacyPolicyUrl ` have to be set for them to be rendered in the UI.
98
+
97
99
## Configuring providers
98
100
99
101
1 . Ensure the provider is installed from step 1 (e.g. if configuring Google provider, you need to install ` FirebaseGoogleSwiftUI ` package).
You can’t perform that action at this time.
0 commit comments