FirebaseAuth Framework Reference

AuthErrors

@objc(FIRAuthErrors)openclassAuthErrors:NSObject

Error Codes common to all API Methods:

  • The Firebase Auth error domain.

    Declaration

    Swift

    @objcpublicstaticletdomain:String
  • The name of the key for the error short string of an error code.

    Declaration

    Swift

    @objcpublicstaticletuserInfoNameKey:String
  • Error codes for Email operations

    Errors with one of the following three codes:

    • accountExistsWithDifferentCredential
    • credentialAlreadyInUse
    • emailAlreadyInUse`

    may contain anNSError.userInfo dictionary object which contains this key. The valueassociated with this key is an NSString of the email address of the account that alreadyexists.

    Declaration

    Swift

    @objcpublicstaticletuserInfoEmailKey:String
  • The key used to read the updated Auth credential from the userInfo dictionary of theNSError object returned. This is the updated auth credential the developer should use forrecovery if applicable.

    Declaration

    Swift

    @objcpublicstaticletuserInfoUpdatedCredentialKey:String
  • The key used to read the MFA resolver from the userInfo dictionary of the NSError objectreturned when 2FA is required for sign-incompletion.

    Declaration

    Swift

    @objc(FIRAuthErrorUserInfoMultiFactorResolverKey)publicstaticletuserInfoMultiFactorResolverKey:String

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-11 UTC.