Constants

The following constants are available globally.

  • The name of the NSNotificationCenter notification 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 sender FIRAuth instance.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRAuthStateDidChangeNotification
  • The Firebase Auth error domain.

    Declaration

    Objective-C

    extern NSString *const FIRAuthErrorDomain
  • The key used to read the updated credential from the userinfo dictionary of the NSError object returned in the case that the credential being linked in already in use.

    Declaration

    Objective-C

    extern NSString *const FIRAuthUpdatedCredentialKey
  • The name of the key for the error_name string in the NSError userinfo dictionary.

    Declaration

    Objective-C

    extern NSString *const FIRAuthErrorNameKey
  • Errors with the code FIRAuthErrorCodeAccountExistsWithDifferentCredential may contain an NSError.userInfo dictinary 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

    Objective-C

    extern NSString *const FIRAuthErrorUserInfoEmailKey
  • A string constant identifying the email & password identity provider.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIREmailAuthProviderID
  • A string constant identifying the email-link sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIREmailLinkAuthSignInMethod
  • A string constant identifying the email & password sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIREmailPasswordAuthSignInMethod
  • Please use FIREmailAuthProviderID for Objective-C or EmailAuthProviderID for Swift instead.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIREmailPasswordAuthProviderID
  • A string constant identifying the Facebook identity provider.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRFacebookAuthProviderID
  • A string constant identifying the Facebook sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRFacebookAuthSignInMethod
  • A string constant identifying the GitHub identity provider.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRGitHubAuthProviderID
  • A string constant identifying the GitHub sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRGitHubAuthSignInMethod
  • A string constant identifying the Google identity provider.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRGoogleAuthProviderID
  • A string constant identifying the Google sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRGoogleAuthSignInMethod
  • @var FIRPhoneAuthProviderID A string constant identifying the phone identity provider.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRPhoneAuthProviderID
  • @var FIRPhoneAuthProviderID A string constant identifying the phone sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRPhoneAuthSignInMethod
  • A string constant identifying the Twitter identity provider.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRTwitterAuthProviderID
  • A string constant identifying the Twitter sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRTwitterAuthSignInMethod
  • Version number for FirebaseAuth.

    Declaration

    Objective-C

    extern const double FirebaseAuthVersionNum
  • Version string for FirebaseAuth.

    Declaration

    Objective-C

    extern const unsigned char *const FirebaseAuthVersionStr