FIRAuthErrorCode

enum FIRAuthErrorCode {}

Error codes used by Firebase Auth.

  • Indicates a validation error with the custom token.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidCustomToken = 17000
  • Indicates the service account and the API key belong to different projects.

    Declaration

    Objective-C

    FIRAuthErrorCodeCustomTokenMismatch = 17002
  • Indicates the IDP token or requestUri is invalid.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidCredential = 17004
  • Indicates the user’s account is disabled on the server.

    Declaration

    Objective-C

    FIRAuthErrorCodeUserDisabled = 17005
  • Indicates the administrator disabled sign in with the specified identity provider.

    Declaration

    Objective-C

    FIRAuthErrorCodeOperationNotAllowed = 17006
  • Indicates the email used to attempt a sign up is already in use.

    Declaration

    Objective-C

    FIRAuthErrorCodeEmailAlreadyInUse = 17007
  • Indicates the email is invalid.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidEmail = 17008
  • Indicates the user attempted sign in with a wrong password.

    Declaration

    Objective-C

    FIRAuthErrorCodeWrongPassword = 17009
  • Indicates that too many requests were made to a server method.

    Declaration

    Objective-C

    FIRAuthErrorCodeTooManyRequests = 17010
  • Indicates the user account was not found.

    Declaration

    Objective-C

    FIRAuthErrorCodeUserNotFound = 17011
  • Indicates account linking is required.

    Declaration

    Objective-C

    FIRAuthErrorCodeAccountExistsWithDifferentCredential = 17012
  • Indicates the user has attemped to change email or password more than 5 minutes after signing in.

    Declaration

    Objective-C

    FIRAuthErrorCodeRequiresRecentLogin = 17014
  • Indicates an attempt to link a provider to which the account is already linked.

    Declaration

    Objective-C

    FIRAuthErrorCodeProviderAlreadyLinked = 17015
  • Indicates an attempt to unlink a provider that is not linked.

    Declaration

    Objective-C

    FIRAuthErrorCodeNoSuchProvider = 17016
  • Indicates user’s saved auth credential is invalid, the user needs to sign in again.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidUserToken = 17017
  • Indicates a network error occurred (such as a timeout, interrupted connection, or unreachable host). These types of errors are often recoverable with a retry. The NSUnderlyingError field in the NSError.userInfo dictionary will contain the error encountered.

    Declaration

    Objective-C

    FIRAuthErrorCodeNetworkError = 17020
  • Indicates the saved token has expired, for example, the user may have changed account password on another device. The user needs to sign in again on the device that made this request.

    Declaration

    Objective-C

    FIRAuthErrorCodeUserTokenExpired = 17021
  • Indicates an invalid API key was supplied in the request.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidAPIKey = 17023
  • Indicates that an attempt was made to reauthenticate with a user which is not the current user.

    Declaration

    Objective-C

    FIRAuthErrorCodeUserMismatch = 17024
  • Indicates an attempt to link with a credential that has already been linked with a different Firebase account

    Declaration

    Objective-C

    FIRAuthErrorCodeCredentialAlreadyInUse = 17025
  • Indicates an attempt to set a password that is considered too weak.

    Declaration

    Objective-C

    FIRAuthErrorCodeWeakPassword = 17026
  • Indicates the App is not authorized to use Firebase Authentication with the provided API Key.

    Declaration

    Objective-C

    FIRAuthErrorCodeAppNotAuthorized = 17028
  • Indicates the OOB code is expired.

    Declaration

    Objective-C

    FIRAuthErrorCodeExpiredActionCode = 17029
  • Indicates the OOB code is invalid.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidActionCode = 17030
  • Indicates that there are invalid parameters in the payload during a send password reset * email attempt.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidMessagePayload = 17031
  • Indicates that the sender email is invalid during a send password reset email attempt.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidSender = 17032
  • Indicates that the recipient email is invalid.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidRecipientEmail = 17033
  • Indicates that an email address was expected but one was not provided.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingEmail = 17034
  • Indicates that the iOS bundle ID is missing when a iOS App Store ID is provided.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingIosBundleID = 17036
  • Indicates that the android package name is missing when the androidInstallApp flag is set to true.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingAndroidPackageName = 17037
  • Indicates that the domain specified in the continue URL is not whitelisted in the Firebase console.

    Declaration

    Objective-C

    FIRAuthErrorCodeUnauthorizedDomain = 17038
  • Indicates that the domain specified in the continue URI is not valid.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidContinueURI = 17039
  • Indicates that a continue URI was not provided in a request to the backend which requires one.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingContinueURI = 17040
  • Indicates that a phone number was not provided in a call to verifyPhoneNumber:completion:.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingPhoneNumber = 17041
  • Indicates that an invalid phone number was provided in a call to verifyPhoneNumber:completion:.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidPhoneNumber = 17042
  • Indicates that the phone auth credential was created with an empty verification code.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingVerificationCode = 17043
  • Indicates that an invalid verification code was used in the verifyPhoneNumber request.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidVerificationCode = 17044
  • Indicates that the phone auth credential was created with an empty verification ID.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingVerificationID = 17045
  • Indicates that an invalid verification ID was used in the verifyPhoneNumber request.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidVerificationID = 17046
  • Indicates that the APNS device token is missing in the verifyClient request.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingAppCredential = 17047
  • Indicates that an invalid APNS device token was used in the verifyClient request.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidAppCredential = 17048
  • Indicates that the SMS code has expired.

    Declaration

    Objective-C

    FIRAuthErrorCodeSessionExpired = 17051
  • Indicates that the quota of SMS messages for a given project has been exceeded.

    Declaration

    Objective-C

    FIRAuthErrorCodeQuotaExceeded = 17052
  • Indicates that the APNs device token could not be obtained. The app may not have set up remote notification correctly, or may fail to forward the APNs device token to FIRAuth if app delegate swizzling is disabled.

    Declaration

    Objective-C

    FIRAuthErrorCodeMissingAppToken = 17053
  • Indicates that the app fails to forward remote notification to FIRAuth.

    Declaration

    Objective-C

    FIRAuthErrorCodeNotificationNotForwarded = 17054
  • Indicates that the app could not be verified by Firebase during phone number authentication.

    Declaration

    Objective-C

    FIRAuthErrorCodeAppNotVerified = 17055
  • Indicates that the reCAPTCHA token is not valid.

    Declaration

    Objective-C

    FIRAuthErrorCodeCaptchaCheckFailed = 17056
  • Indicates that an attempt was made to present a new web context while one was already being presented.

    Declaration

    Objective-C

    FIRAuthErrorCodeWebContextAlreadyPresented = 17057
  • Indicates that the URL presentation was cancelled prematurely by the user.

    Declaration

    Objective-C

    FIRAuthErrorCodeWebContextCancelled = 17058
  • Indicates a general failure during the app verification flow.

    Declaration

    Objective-C

    FIRAuthErrorCodeAppVerificationUserInteractionFailure = 17059
  • Indicates that the clientID used to invoke a web flow is invalid.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidClientID = 17060
  • Indicates that a network request within a SFSafariViewController or UIWebview failed.

    Declaration

    Objective-C

    FIRAuthErrorCodeWebNetworkRequestFailed = 17061
  • Indicates that an internal error occurred within a SFSafariViewController or UIWebview.

    Declaration

    Objective-C

    FIRAuthErrorCodeWebInternalError = 17062
  • Indicates that a non-null user was expected as an argmument to the operation but a null user was provided.

    Declaration

    Objective-C

    FIRAuthErrorCodeNullUser = 17067
  • Indicates that the Firebase Dynamic Link domain used is either not configured or is unauthorized for the current project.

    Declaration

    Objective-C

    FIRAuthErrorCodeInvalidDynamicLinkDomain = 17074
  • Indicates an error occurred while attempting to access the keychain.

    Declaration

    Objective-C

    FIRAuthErrorCodeKeychainError = 17995
  • Indicates an internal error occurred.

    Declaration

    Objective-C

    FIRAuthErrorCodeInternalError = 17999
  • Raised when a JWT fails to parse correctly. May be accompanied by an underlying error describing which step of the JWT parsing process failed.

    Declaration

    Objective-C

    FIRAuthErrorCodeMalformedJWT = 18000