Package com.firebase.ui.auth
Class ErrorCodes
- java.lang.Object
-
- com.firebase.ui.auth.ErrorCodes
-
public final class ErrorCodes extends Object
Error codes for failed sign-in attempts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ErrorCodes.Code
Valid codes that can be returned fromFirebaseUiException.getErrorCode()
.
-
Field Summary
Fields Modifier and Type Field Description static int
ANONYMOUS_UPGRADE_MERGE_CONFLICT
Anonymous account linking failed.static int
DEVELOPER_ERROR
A sign-in operation couldn't be completed due to a developer error.static int
EMAIL_LINK_CROSS_DEVICE_LINKING_ERROR
Cross device linking flow - we need to ask the user if they want to continue linking or just sign in.static int
EMAIL_LINK_DIFFERENT_ANONYMOUS_USER_ERROR
Attempting to open an email link from the same device, with anonymous upgrade enabled, but the underlying anonymous user has been changed.static int
EMAIL_LINK_PROMPT_FOR_EMAIL_ERROR
We need to prompt the user for their email.static int
EMAIL_LINK_WRONG_DEVICE_ERROR
Attempting to open an email link from a different device.static int
EMAIL_MISMATCH_ERROR
Signing in with a different email in the WelcomeBackIdp flow or email link flow.static int
ERROR_GENERIC_IDP_RECOVERABLE_ERROR
Recoverable error occurred during the Generic IDP flow.static int
ERROR_USER_DISABLED
Attempting to auth with account that is currently disabled in the Firebase console.static int
INVALID_EMAIL_LINK_ERROR
Attempting to sign in with an invalid email link.static int
NO_NETWORK
Sign in failed due to lack of network connection.static int
PLAY_SERVICES_UPDATE_CANCELLED
A required update to Play Services was cancelled by the user.static int
PROVIDER_ERROR
An external sign-in provider error occurred.static int
UNKNOWN_ERROR
An unknown error has occurred.
-
-
-
Field Detail
-
UNKNOWN_ERROR
public static final int UNKNOWN_ERROR
An unknown error has occurred.- See Also:
- Constant Field Values
-
NO_NETWORK
public static final int NO_NETWORK
Sign in failed due to lack of network connection.- See Also:
- Constant Field Values
-
PLAY_SERVICES_UPDATE_CANCELLED
public static final int PLAY_SERVICES_UPDATE_CANCELLED
A required update to Play Services was cancelled by the user.- See Also:
- Constant Field Values
-
DEVELOPER_ERROR
public static final int DEVELOPER_ERROR
A sign-in operation couldn't be completed due to a developer error.- See Also:
- Constant Field Values
-
PROVIDER_ERROR
public static final int PROVIDER_ERROR
An external sign-in provider error occurred.- See Also:
- Constant Field Values
-
ANONYMOUS_UPGRADE_MERGE_CONFLICT
public static final int ANONYMOUS_UPGRADE_MERGE_CONFLICT
Anonymous account linking failed.- See Also:
- Constant Field Values
-
EMAIL_MISMATCH_ERROR
public static final int EMAIL_MISMATCH_ERROR
Signing in with a different email in the WelcomeBackIdp flow or email link flow.- See Also:
- Constant Field Values
-
INVALID_EMAIL_LINK_ERROR
public static final int INVALID_EMAIL_LINK_ERROR
Attempting to sign in with an invalid email link.- See Also:
- Constant Field Values
-
EMAIL_LINK_WRONG_DEVICE_ERROR
public static final int EMAIL_LINK_WRONG_DEVICE_ERROR
Attempting to open an email link from a different device.- See Also:
- Constant Field Values
-
EMAIL_LINK_PROMPT_FOR_EMAIL_ERROR
public static final int EMAIL_LINK_PROMPT_FOR_EMAIL_ERROR
We need to prompt the user for their email.- See Also:
- Constant Field Values
-
EMAIL_LINK_CROSS_DEVICE_LINKING_ERROR
public static final int EMAIL_LINK_CROSS_DEVICE_LINKING_ERROR
Cross device linking flow - we need to ask the user if they want to continue linking or just sign in.- See Also:
- Constant Field Values
-
EMAIL_LINK_DIFFERENT_ANONYMOUS_USER_ERROR
public static final int EMAIL_LINK_DIFFERENT_ANONYMOUS_USER_ERROR
Attempting to open an email link from the same device, with anonymous upgrade enabled, but the underlying anonymous user has been changed.- See Also:
- Constant Field Values
-
ERROR_USER_DISABLED
public static final int ERROR_USER_DISABLED
Attempting to auth with account that is currently disabled in the Firebase console.- See Also:
- Constant Field Values
-
ERROR_GENERIC_IDP_RECOVERABLE_ERROR
public static final int ERROR_GENERIC_IDP_RECOVERABLE_ERROR
Recoverable error occurred during the Generic IDP flow.- See Also:
- Constant Field Values
-
-
Method Detail
-
toFriendlyMessage
@NonNull public static String toFriendlyMessage(int code)
-
-