You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enables email/password and email link authentication and will register an email button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`. Uses default behavior (navigates to email link view when tapped).
773
+
Enables email authentication and will render email sign-in directly within the AuthPickerView (default Views), email link sign-in is rendered as a button. When calling `AuthService.renderButtons()`, email link sign-in button is rendered. `onTap` custom callback (i.e where to navigate when tapped) allows user to control what happens when tapped. Default behavior in AuthPickerView is to push the user to email link sign-in default View.
774
+
775
+
**Parameters:**
776
+
-`provider`: An optional instance of `EmailProviderSwift`. If not provided, a default instance will be created.
777
+
-`onTap`: A callback that will be executed when the email button is tapped.
Enables email authentication and will register an email button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`. Uses a custom callback (i.e where to navigate when tapped) when the email button is tapped.
787
784
788
-
**Example:**
785
+
// or
789
786
790
-
```swift
791
787
authService
792
788
.withEmailSignIn(){
793
789
// navigate to email sign-in screen logic
@@ -799,30 +795,24 @@ authService
799
795
##### Phone Authentication
800
796
801
797
```swift
802
-
// Available when importing FirebasePhoneAuthSwiftUI
Enables phone number authentication with SMS verification and will register a phone button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`. Uses default behavior (navigates to enter phone number view when tapped).
801
+
Enables phone number authentication with SMS verification and will register a phone button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`. `onTap` custom callback (i.e where to navigate when tapped) allows user to control what happens when tapped. Default behavior in AuthPickerView is to push the user to phone sign-in default View.
802
+
803
+
**Parameters:**
804
+
-`onTap`: A callback that will be executed when the phone button is tapped.
Enables phone authentication and will register a phone button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`. Uses a custom callback (i.e where to navigate when tapped) when the phone button is tapped.
812
+
// or
820
813
821
-
**Example:**
822
-
823
-
```swift
824
814
authService
825
-
.withPhoneSignIn(){
815
+
.withPhoneSignIn(){
826
816
// navigate to phone sign-in screen logic
827
817
}
828
818
```
@@ -875,19 +865,19 @@ authService
875
865
876
866
```swift
877
867
// Available when importing FirebaseFacebookSwiftUI
Enables Sign in with Facebook authentication and will register a Facebook button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`.
882
872
883
873
**Parameters:**
884
-
-`provider`: An instance of `FacebookProviderSwift()` for classic login or `FacebookProviderSwift(useClassicLogin: false)` for limited login.
874
+
-`provider`: An optional instance of `FacebookProviderSwift()` for classic login or `FacebookProviderSwift(useClassicLogin: false)` for limited login. If not provided, a default instance with classic login will be created.
885
875
886
876
**Example:**
887
877
888
878
```swift
889
879
authService
890
-
.withFacebookSignIn(FacebookProviderSwift())
880
+
.withFacebookSignIn()
891
881
```
892
882
893
883
---
@@ -1061,7 +1051,7 @@ Signs in using email and password credentials.
0 commit comments