FIRAuthErrorCode

enum FIRAuthErrorCode : NSInteger {}

Error codes used by Firebase Auth.

  • Indicates a validation error with the custom token.

    Declaration

    Swift

    case errorCodeInvalidCustomToken = 17000

    Objective-C

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

    Declaration

    Swift

    case errorCodeCustomTokenMismatch = 17002

    Objective-C

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

    Declaration

    Swift

    case errorCodeInvalidCredential = 17004

    Objective-C

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

    Declaration

    Swift

    case errorCodeUserDisabled = 17005

    Objective-C

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

    Declaration

    Swift

    case errorCodeOperationNotAllowed = 17006

    Objective-C

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

    Declaration

    Swift

    case errorCodeEmailAlreadyInUse = 17007

    Objective-C

    FIRAuthErrorCodeEmailAlreadyInUse = 17007
  • Indicates the email is invalid.

    Declaration

    Swift

    case errorCodeInvalidEmail = 17008

    Objective-C

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

    Declaration

    Swift

    case errorCodeWrongPassword = 17009

    Objective-C

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

    Declaration

    Swift

    case errorCodeTooManyRequests = 17010

    Objective-C

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

    Declaration

    Swift

    case errorCodeUserNotFound = 17011

    Objective-C

    FIRAuthErrorCodeUserNotFound = 17011
  • Indicates account linking is required.

    Declaration

    Swift

    case errorCodeAccountExistsWithDifferentCredential = 17012

    Objective-C

    FIRAuthErrorCodeAccountExistsWithDifferentCredential = 17012
  • Same enum as FIRAuthErrorCodeAccountExistsWithDifferentCredential , but with incorrect spelling. Only exists for backwards compatiblity.

    Declaration

    Swift

    static var errrorCodeAccountExistsWithDifferentCredential: FIRAuthErrorCode { get }

    Objective-C

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

    Declaration

    Swift

    case errorCodeRequiresRecentLogin = 17014

    Objective-C

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

    Declaration

    Swift

    case errorCodeProviderAlreadyLinked = 17015

    Objective-C

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

    Declaration

    Swift

    case errorCodeNoSuchProvider = 17016

    Objective-C

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

    Declaration

    Swift

    case errorCodeInvalidUserToken = 17017

    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 @c NSUnderlyingError field in the NSError.userInfo dictionary will contain the error encountered.

    Declaration

    Swift

    case errorCodeNetworkError = 17020

    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

    Swift

    case errorCodeUserTokenExpired = 17021

    Objective-C

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

    Declaration

    Swift

    case errorCodeInvalidAPIKey = 17023

    Objective-C

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

    Declaration

    Swift

    case errorCodeUserMismatch = 17024

    Objective-C

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

    Declaration

    Swift

    case errorCodeCredentialAlreadyInUse = 17025

    Objective-C

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

    Declaration

    Swift

    case errorCodeWeakPassword = 17026

    Objective-C

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

    Declaration

    Swift

    case errorCodeAppNotAuthorized = 17028

    Objective-C

    FIRAuthErrorCodeAppNotAuthorized = 17028
  • Indicates the OOB code is expired.

    Declaration

    Swift

    case errorCodeExpiredActionCode = 17029

    Objective-C

    FIRAuthErrorCodeExpiredActionCode = 17029
  • Indicates the OOB code is invalid.

    Declaration

    Swift

    case errorCodeInvalidActionCode = 17030

    Objective-C

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

    Declaration

    Swift

    case errorCodeInvalidMessagePayload = 17031

    Objective-C

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

    Declaration

    Swift

    case errorCodeInvalidSender = 17032

    Objective-C

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

    Declaration

    Swift

    case errorCodeInvalidRecipientEmail = 17033

    Objective-C

    FIRAuthErrorCodeInvalidRecipientEmail = 17033
  • Indicates an error occurred while attempting to access the keychain.

    Declaration

    Swift

    case errorCodeKeychainError = 17995

    Objective-C

    FIRAuthErrorCodeKeychainError = 17995
  • Indicates an internal error occurred.

    Declaration

    Swift

    case errorCodeInternalError = 17999

    Objective-C

    FIRAuthErrorCodeInternalError = 17999