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
Copy file name to clipboardExpand all lines: auth/src/main/java/com/firebase/ui/auth/compose/configuration/auth_provider/EmailAuthProvider+FirebaseAuthUI.kt
+8-16Lines changed: 8 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -860,8 +860,9 @@ internal suspend fun FirebaseAuthUI.signInWithEmailLink(
860
860
* **Flow:**
861
861
* 1. Validate the email address exists in Firebase Auth
862
862
* 2. Send password reset email to the user
863
-
* 3. User clicks link in email to reset password
864
-
* 4. User is redirected to Firebase-hosted password reset page (or custom URL if configured)
863
+
* 3. Emit [AuthState.PasswordResetLinkSent] state
864
+
* 4. User clicks link in email to reset password
865
+
* 5. User is redirected to Firebase-hosted password reset page (or custom URL if configured)
865
866
*
866
867
* **Error Handling:**
867
868
* - If the email doesn't exist: throws [AuthException.UserNotFoundException]
@@ -872,8 +873,6 @@ internal suspend fun FirebaseAuthUI.signInWithEmailLink(
872
873
* @param actionCodeSettings Optional [ActionCodeSettings] to configure the password reset link.
873
874
* Use this to customize the continue URL, dynamic link domain, and other settings.
874
875
*
875
-
* @return The email address that the reset link was sent to (useful for confirmation UI)
876
-
*
877
876
* @throws AuthException.UserNotFoundException if no account exists with this email
878
877
* @throws AuthException.InvalidCredentialsException if the email format is invalid
879
878
* @throws AuthException.NetworkException if a network error occurs
@@ -883,7 +882,7 @@ internal suspend fun FirebaseAuthUI.signInWithEmailLink(
883
882
* **Example 1: Basic password reset**
884
883
* ```kotlin
885
884
* try {
886
-
* val email = firebaseAuthUI.sendPasswordResetEmail(
Copy file name to clipboardExpand all lines: auth/src/test/java/com/firebase/ui/auth/compose/configuration/auth_provider/EmailAuthProviderFirebaseAuthUITest.kt
+27-15Lines changed: 27 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -618,18 +618,22 @@ class EmailAuthProviderFirebaseAuthUITest {
0 commit comments