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

    Swift

    let AuthStateDidChangeNotification: String

    Objective-C

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

    Declaration

    Swift

    let AuthErrorDomain: String

    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

    Swift

    let AuthUpdatedCredentialKey: String

    Objective-C

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

    Declaration

    Swift

    let AuthErrorNameKey: String

    Objective-C

    extern NSString *const FIRAuthErrorNameKey
  • @var FIRAuthErrorUserInfoEmailKey Errors with the code FIRAuthErrorCodeEmailAlreadyInUse may contains an NSError.userInfo dictinary which contains this key. The value associated with this key is an NSString of the email address that already exists.

    Declaration

    Swift

    let AuthErrorUserInfoEmailKey: String

    Objective-C

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

    Declaration

    Swift

    let EmailAuthProviderID: String

    Objective-C

    extern NSString *const _Nonnull FIREmailAuthProviderID
  • please use FIREmailAuthProviderID instead.

    Declaration

    Swift

    let FIREmailPasswordAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let FacebookAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let GitHubAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let GoogleAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let PhoneAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let TwitterAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let FirebaseAuthVersionNumber: Double

    Objective-C

    extern const double FirebaseAuthVersionNumber
  • Version string for FirebaseAuth.

    Declaration

    Swift

    let FirebaseAuthVersionString: UnsafePointer

    Objective-C

    extern const unsigned char *const FirebaseAuthVersionString