File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
auth/src/main/java/com/firebase/ui/auth/ui/idp Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 20
20
import android .support .annotation .RestrictTo ;
21
21
import android .util .Log ;
22
22
23
+ import com .firebase .ui .auth .ErrorCodes ;
23
24
import com .firebase .ui .auth .IdpResponse ;
25
+ import com .firebase .ui .auth .ResultCodes ;
24
26
import com .firebase .ui .auth .ui .BaseHelper ;
25
27
import com .firebase .ui .auth .ui .TaskFailureLogger ;
26
28
import com .firebase .ui .auth .ui .User ;
@@ -82,9 +84,10 @@ public void onComplete(@NonNull Task<AuthResult> task) {
82
84
.addOnFailureListener (new OnFailureListener () {
83
85
@ Override
84
86
public void onFailure (@ NonNull Exception e ) {
85
- // TODO: What to do when signing in with Credential fails
86
- // and we can't continue to Welcome back flow without
87
- // knowing providers?
87
+ mHelper .finishActivity (
88
+ mActivity ,
89
+ ResultCodes .CANCELED ,
90
+ IdpResponse .getErrorCodeIntent (ErrorCodes .UNKNOWN_ERROR ));
88
91
}
89
92
});
90
93
return ;
You can’t perform that action at this time.
0 commit comments