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
  • The Firebase Auth error domain.

    Declaration

    Swift

    let AuthErrorDomain: String
  • 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
  • The name of the key for the error_name string in the NSError userinfo dictionary.

    Declaration

    Swift

    let AuthErrorNameKey: String
  • 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

    Swift

    let AuthErrorUserInfoEmailKey: String
  • A string constant identifying the email & password identity provider.

    Declaration

    Swift

    let EmailAuthProviderID: String
  • A string constant identifying the email-link sign-in method.

    Declaration

    Swift

    let EmailLinkAuthSignInMethod: String
  • A string constant identifying the email & password sign-in method.

    Declaration

    Swift

    let EmailPasswordAuthSignInMethod: String
  • Please use FIREmailAuthProviderID for Objective-C or EmailAuthProviderID for Swift instead.

    Declaration

    Swift

    let FIREmailPasswordAuthProviderID: String
  • A string constant identifying the Facebook identity provider.

    Declaration

    Swift

    let FacebookAuthProviderID: String
  • A string constant identifying the Facebook sign-in method.

    Declaration

    Swift

    let FacebookAuthSignInMethod: String
  • A string constant identifying the GitHub identity provider.

    Declaration

    Swift

    let GitHubAuthProviderID: String
  • A string constant identifying the GitHub sign-in method.

    Declaration

    Swift

    let GitHubAuthSignInMethod: String
  • A string constant identifying the Google identity provider.

    Declaration

    Swift

    let GoogleAuthProviderID: String
  • A string constant identifying the Google sign-in method.

    Declaration

    Swift

    let GoogleAuthSignInMethod: String
  • @var FIRPhoneAuthProviderID A string constant identifying the phone identity provider.

    Declaration

    Swift

    let PhoneAuthProviderID: String
  • @var FIRPhoneAuthProviderID A string constant identifying the phone sign-in method.

    Declaration

    Swift

    let PhoneAuthSignInMethod: String
  • A string constant identifying the Twitter identity provider.

    Declaration

    Swift

    let TwitterAuthProviderID: String
  • A string constant identifying the Twitter sign-in method.

    Declaration

    Swift

    let TwitterAuthSignInMethod: String