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 {
7575 // custom string bundle for string localizations
7676 let customStringsBundle: Bundle?
7777 // terms of service URL
78- let tosUrl: URL
78+ let tosUrl: URL?
7979 // privacy policy URL
80- let privacyPolicyUrl: URL
80+ let privacyPolicyUrl: URL?
8181 // action code settings for email sign in link
8282 let emailLinkSignInActionCodeSettings: ActionCodeSettings?
8383 // action code settings verifying email address
@@ -87,13 +87,15 @@ public struct AuthConfiguration {
8787 interactiveDismissEnabled : Bool = true ,
8888 shouldAutoUpgradeAnonymousUsers : Bool = false ,
8989 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 ,
9292 emailLinkSignInActionCodeSettings : ActionCodeSettings? = nil ,
9393 verifyEmailActionCodeSettings : ActionCodeSettings? = nil )
9494}
9595```
9696
97+ > Note: Both ` tosUrl ` and ` privacyPolicyUrl ` have to be set for them to be rendered in the UI.
98+
9799## Configuring providers
98100
991011 . 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