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

    static let FIRAuthStateDidChange: NSNotification.Name

    Objective-C

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

    Declaration

    Swift

    let FIRAuthErrorDomain: String

    Objective-C

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

    Declaration

    Swift

    let FIRAuthErrorNameKey: String

    Objective-C

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

    Declaration

    Swift

    let FIREmailPasswordAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let FIRFacebookAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let FIRGitHubAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let FIRGoogleAuthProviderID: String

    Objective-C

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

    Declaration

    Swift

    let FIRTwitterAuthProviderID: 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