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 const NSNotificationName _Nonnull FIRAuthStateDidChangeNotification
  • The Firebase Auth error domain.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRAuthErrorDomain
  • The name of the key for the error short string of an error code.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRAuthErrorUserInfoNameKey
  • Errors with one of the following three codes: - FIRAuthErrorCodeAccountExistsWithDifferentCredential - FIRAuthErrorCodeCredentialAlreadyInUse - FIRAuthErrorCodeEmailAlreadyInUse 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 _Nonnull FIRAuthErrorUserInfoEmailKey
  • 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

    Objective-C

    extern NSString *const _Nonnull FIRAuthErrorUserInfoUpdatedCredentialKey
  • 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
  • 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 Game Center identity provider.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRGameCenterAuthProviderID
  • A string constant identifying the Game Center sign-in method.

    Declaration

    Objective-C

    extern NSString *const _Nonnull FIRGameCenterAuthSignInMethod
  • 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