File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
auth/src/main/java/com/firebase/ui/auth/ui/idp Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,15 @@ protected void onFailure(@NonNull Exception e) {
171
171
}
172
172
173
173
private void handleResponse (@ NonNull IdpResponse response ) {
174
- if (!response .isSuccessful ()
175
- || AuthUI .SOCIAL_PROVIDERS .contains (response .getProviderType ())) {
174
+ if (!response .isSuccessful ()) {
175
+ // We have no idea what provider this error stemmed from so just forward
176
+ // this along to the handler.
177
+ handler .startSignIn (response );
178
+ } else if (AuthUI .SOCIAL_PROVIDERS .contains (response .getProviderType ())) {
176
179
handler .startSignIn (response );
177
180
} else {
181
+ // Email or phone: the credentials should have already been saved so simply
182
+ // move along.
178
183
finish (response .isSuccessful () ? RESULT_OK : RESULT_CANCELED ,
179
184
response .toIntent ());
180
185
}
You can’t perform that action at this time.
0 commit comments