Package com.firebase.ui.auth
Class ErrorCodes
- java.lang.Object
-
- com.firebase.ui.auth.ErrorCodes
-
public final class ErrorCodes extends java.lang.ObjectError codes for failed sign-in attempts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceErrorCodes.CodeValid codes that can be returned fromFirebaseUiException.getErrorCode().
-
Field Summary
Fields Modifier and Type Field Description static intANONYMOUS_UPGRADE_MERGE_CONFLICTAnonymous account linking failed.static intDEVELOPER_ERRORA sign-in operation couldn't be completed due to a developer error.static intEMAIL_LINK_CROSS_DEVICE_LINKING_ERRORCross device linking flow - we need to ask the user if they want to continue linking or just sign in.static intEMAIL_LINK_DIFFERENT_ANONYMOUS_USER_ERRORAttempting to open an email link from the same device, with anonymous upgrade enabled, but the underlying anonymous user has been changed.static intEMAIL_LINK_PROMPT_FOR_EMAIL_ERRORWe need to prompt the user for their email.static intEMAIL_LINK_WRONG_DEVICE_ERRORAttempting to open an email link from a different device.static intEMAIL_MISMATCH_ERRORSigning in with a different email in the WelcomeBackIdp flow or email link flow.static intERROR_GENERIC_IDP_RECOVERABLE_ERRORRecoverable error occurred during the Generic IDP flow.static intERROR_USER_DISABLEDAttempting to auth with account that is currently disabled in the Firebase console.static intINVALID_EMAIL_LINK_ERRORAttempting to sign in with an invalid email link.static intNO_NETWORKSign in failed due to lack of network connection.static intPLAY_SERVICES_UPDATE_CANCELLEDA required update to Play Services was cancelled by the user.static intPROVIDER_ERRORAn external sign-in provider error occurred.static intUNKNOWN_ERRORAn unknown error has occurred.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringtoFriendlyMessage(int code)
-
-
-
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
-
-