FirebaseAuth Framework Reference Stay organized with collections Save and categorize content based on your preferences.
Constants
The following constants are available globally.
@brief The name of the
NSNotificationCenternotification which is posted when the auth state changes (for example, a new token has been produced, a user signs in or signs out). The object parameter of the notification is the senderAuthinstance.Declaration
Swift
staticletAuthStateDidChange:NSNotification.Name@brief The Firebase Auth error domain.
Declaration
Swift
letAuthErrorDomain:String@brief The name of the key for the error short string of an error code.
Declaration
Swift
letAuthErrorUserInfoNameKey:String@brief Errors with one of the following three codes: -
AuthErrorCodeAccountExistsWithDifferentCredential-AuthErrorCodeCredentialAlreadyInUse-AuthErrorCodeEmailAlreadyInUsemay contain anNSError.userInfodictionary object which contains this key. The value associated with this key is an NSString of the email address of the account that already exists.Declaration
Swift
letAuthErrorUserInfoEmailKey:String@brief The key used to read the updated Auth credential from the userInfo dictionary of the NSError object returned. This is the updated auth credential the developer should use for recovery if applicable.
Declaration
Swift
letAuthErrorUserInfoUpdatedCredentialKey:String@brief The key used to read the MFA resolver from the userInfo dictionary of the NSError object returned when 2FA is required for sign-incompletion.
Declaration
Swift
letAuthErrorUserInfoMultiFactorResolverKey:String@brief A string constant identifying the email & password identity provider.
Declaration
Swift
letEmailAuthProviderID:String@brief A string constant identifying the email-link sign-in method.
Declaration
Swift
letEmailLinkAuthSignInMethod:String@brief A string constant identifying the email & password sign-in method.
Declaration
Swift
letEmailPasswordAuthSignInMethod:String@brief A string constant identifying the Facebook identity provider.
Declaration
Swift
letFacebookAuthProviderID:String@brief A string constant identifying the Facebook sign-in method.
Declaration
Swift
letFacebookAuthSignInMethod:String@brief A string constant identifying the Game Center identity provider.
Declaration
Swift
letGameCenterAuthProviderID:String@brief A string constant identifying the Game Center sign-in method.
Declaration
Swift
letGameCenterAuthSignInMethod:String@brief A string constant identifying the GitHub identity provider.
Declaration
Swift
letGitHubAuthProviderID:String@brief A string constant identifying the GitHub sign-in method.
Declaration
Swift
letGitHubAuthSignInMethod:String@brief A string constant identifying the Google identity provider.
Declaration
Swift
letGoogleAuthProviderID:String@brief A string constant identifying the Google sign-in method.
Declaration
Swift
letGoogleAuthSignInMethod:String@brief The string identifier for using phone as a second factor. This constant is available on iOS and macOS.
Declaration
Swift
letPhoneMultiFactorID:String@brief The string identifier for using TOTP as a second factor. This constant is available on iOS and macOS.
Declaration
Swift
letTOTPMultiFactorID:String@var FIRPhoneAuthProviderID @brief A string constant identifying the phone identity provider. This constant is available on iOS only.
Declaration
Swift
letPhoneAuthProviderID:String@var FIRPhoneAuthProviderID @brief A string constant identifying the phone sign-in method. This constant is available on iOS only.
Declaration
Swift
letPhoneAuthSignInMethod:String@brief A string constant identifying the Twitter identity provider.
Declaration
Swift
letTwitterAuthProviderID:String@brief A string constant identifying the Twitter sign-in method.
Declaration
Swift
letTwitterAuthSignInMethod: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-08-27 UTC.