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
When signing in by using the account of a deactivated user, IdpResponse returns an error code of 5, yet error code for ERROR_USER_DISABLED in ErrorCodes.java has a value of 12, while code 5 means ANONYMOUS_UPGRADE_MERGE_CONFLICT
Deactivate a user in the Firebase Console, try to sign in with that user by using FirebaseUI-Android
Observed Results:
IdpResponse.fromResultIntent(data).getError().getErrorCode() returns a value of 5
The message of .getError().toString() is "com.firabase.ui.auth.FirebaseUiException: User account merge conflict"
Expected Results:
IdpResponse.fromResultIntent(data).getError().getErrorCode() returns a value of 12
Relevant Code:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RC_SIGN_IN) {
final IdpResponse response = IdpResponse.fromResultIntent(data);
if (resultCode == RESULT_OK) {
final FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
user.getIdToken(false).addOnCompleteListener(new OnCompleteListener<GetTokenResult>() {
@Override public void onComplete(@NonNull Task<GetTokenResult> task) {
MyFirebaseManager.analyzeUser("on_activity_result", user, task, response.isNewUser());
}
});
}
else {
// Sign in failed. If response is null the user canceled the
// sign-in flow using the back button. Otherwise check
// response.getError().getErrorCode() and handle the error.
// ...
if (response == null) {
MyFirebaseManager.signInCancelled();
}
else {
FirebaseUiException thing = response.getError();
MyFirebaseManager.signInFailed(response.getError().getErrorCode()); // <----
}
}
}
}
The text was updated successfully, but these errors were encountered:
Step 2: Describe your environment
Step 3: Describe the problem:
When signing in by using the account of a deactivated user,
IdpResponse
returns an error code of5
, yet error code forERROR_USER_DISABLED
inErrorCodes.java
has a value of12
, while code5
meansANONYMOUS_UPGRADE_MERGE_CONFLICT
FirebaseUI-Android/auth/src/main/java/com/firebase/ui/auth/ErrorCodes.java
Line 72 in 4b06d16
Steps to reproduce:
Deactivate a user in the Firebase Console, try to sign in with that user by using FirebaseUI-Android
Observed Results:
IdpResponse.fromResultIntent(data).getError().getErrorCode()
returns a value of5
The message of
.getError().toString()
is "com.firabase.ui.auth.FirebaseUiException: User account merge conflict"Expected Results:
IdpResponse.fromResultIntent(data).getError().getErrorCode()
returns a value of12
Relevant Code:
The text was updated successfully, but these errors were encountered: