Class ErrorCodes


  • public final class ErrorCodes
    extends Object
    Error codes for failed sign-in attempts.
    • 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)