File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public static String signInMethodToProviderId(@NonNull String method) {
84
84
case EmailAuthProvider .EMAIL_LINK_SIGN_IN_METHOD :
85
85
return EmailAuthProvider .PROVIDER_ID ;
86
86
default :
87
- throw new IllegalStateException ("Unknown method: + " + method );
87
+ throw new IllegalStateException ("Unknown method: " + method );
88
88
}
89
89
}
90
90
Original file line number Diff line number Diff line change @@ -57,7 +57,13 @@ public void onFailure(@NonNull Exception e) {
57
57
// Collision with existing user email, it should be very hard for
58
58
// the user to even get to this error due to CheckEmailFragment.
59
59
ProviderUtils .fetchTopProvider (getAuth (), email )
60
- .addOnSuccessListener (new StartWelcomeBackFlow (email ));
60
+ .addOnSuccessListener (new StartWelcomeBackFlow (email ))
61
+ .addOnFailureListener (new OnFailureListener () {
62
+ @ Override
63
+ public void onFailure (@ NonNull Exception e ) {
64
+ setResult (Resource .<IdpResponse >forFailure (e ));
65
+ }
66
+ });
61
67
} else {
62
68
setResult (Resource .<IdpResponse >forFailure (e ));
63
69
}
You can’t perform that action at this time.
0 commit comments