FirebaseAuth Framework Reference

Classes

The following classes are available globally.

  • Used to set and retrieve settings related to handling action codes.

    Declaration

    Swift

    class ActionCodeSettings : NSObject
  • Represents additional user data returned from an identity provider.

    Declaration

    Swift

    class AdditionalUserInfo : NSObject
  • Manages information regarding action codes.

    Declaration

    Swift

    class ActionCodeInfo : NSObject
  • This class will allow developers to easily extract information about out of band links.

    Declaration

    Swift

    class ActionCodeURL : NSObject
  • Manages authentication for Firebase apps. This class is thread-safe.

    Declaration

    Swift

    class Auth : NSObject
  • Represents a credential.

    Declaration

    Swift

    class AuthCredential : NSObject
  • Helper object that contains the result of a successful sign-in, link and reauthenticate action. It contains references to a User instance and a AdditionalUserInfo instance.

    Declaration

    Swift

    class AuthDataResult : NSObject
  • Error Codes common to all API Methods:

    + `AuthErrorCodeNetworkError`
    + `AuthErrorCodeUserNotFound`
    + `AuthErrorCodeUserTokenExpired`
    + `AuthErrorCodeTooManyRequests`
    + `AuthErrorCodeInvalidAPIKey`
    + `AuthErrorCodeAppNotAuthorized`
    + `AuthErrorCodeKeychainError`
    + `AuthErrorCodeInternalError`
    

    Common error codes for User operations:

    + `AuthErrorCodeInvalidUserToken`
    + `AuthErrorCodeUserDisabled`
    

    Declaration

    Swift

    class AuthErrors
  • Determines settings related to an auth object.

    Declaration

    Swift

    class AuthSettings : NSObject, NSCopying
  • A data class containing the ID token JWT string and other properties associated with the token including the decoded payload claims.

    Declaration

    Swift

    class AuthTokenResult : NSObject
  • A concrete implementation of AuthProvider for Email & Password Sign In.

    Declaration

    Swift

    class EmailAuthProvider : NSObject
  • Utility class for constructing Facebook credentials.

    Declaration

    Swift

    class FacebookAuthProvider : NSObject
  • A concrete implementation of AuthProvider for Game Center Sign In. Not available on watchOS.

    Declaration

    Swift

    class GameCenterAuthProvider : NSObject
  • Utility class for constructing GitHub credentials.

    Declaration

    Swift

    class GitHubAuthProvider : NSObject
  • Utility class for constructing Google Sign In credentials.

    Declaration

    Swift

    class GoogleAuthProvider : NSObject
  • The interface defining the multi factor related properties and operations pertaining to a user. This class is available on iOS only.

    Declaration

    Swift

    class MultiFactor : NSObject
  • The base class for asserting ownership of a second factor. This is equivalent to the AuthCredential class. This class is available on iOS only.

    Declaration

    Swift

    class MultiFactorAssertion : NSObject
  • Safe public structure used to represent a second factor entity from a client perspective. This class is available on iOS only.

    Declaration

    Swift

    class MultiFactorInfo : NSObject
  • The data structure used to help developers resolve 2nd factor requirements on users that have opted in to 2 factor authentication. This class is available on iOS only.

    Declaration

    Swift

    class MultiFactorResolver : NSObject
  • Opaque object that identifies the current session to enroll a second factor or to complete sign in when previously enrolled. This class is available on iOS only.

    Declaration

    Swift

    class MultiFactorSession : NSObject
  • Internal implementation of FIRAuthCredential for generic credentials.

    Declaration

    Swift

    class OAuthCredential : AuthCredential, NSSecureCoding
  • A concrete implementation of AuthProvider for generic OAuth Providers.

    Declaration

    Swift

    class OAuthProvider : NSObject, FederatedAuthProvider
  • Implementation of FIRAuthCredential for Phone Auth credentials. This class is available on iOS only.

    Declaration

    Swift

    class PhoneAuthCredential : AuthCredential, NSSecureCoding
  • A concrete implementation of AuthProvider for phone auth providers. This class is available on iOS only.

    Declaration

    Swift

    class PhoneAuthProvider : NSObject
  • The subclass of base class FIRMultiFactorAssertion, used to assert ownership of a phone second factor. This class is available on iOS only.

    Declaration

    Swift

    class PhoneMultiFactorAssertion : MultiFactorAssertion
  • The data structure used to help initialize an assertion for a second factor entity to the Firebase Auth/CICP server. Depending on the type of second factor, this will help generate the assertion. This class is available on iOS only.

    Declaration

    Swift

    class PhoneMultiFactorGenerator : NSObject
  • Extends the MultiFactorInfo class for phone number second factors. The identifier of this second factor is “phone”. This class is available on iOS only.

    Declaration

    Swift

    class PhoneMultiFactorInfo : MultiFactorInfo
  • The subclass of base class MultiFactorAssertion, used to assert ownership of a TOTP (Time-based One Time Password) second factor. This class is available on iOS only.

    Declaration

    Swift

    class TOTPMultiFactorAssertion : MultiFactorAssertion
  • The data structure used to help initialize an assertion for a second factor entity to the Firebase Auth/CICP server. Depending on the type of second factor, this will help generate the assertion. This class is available on iOS only.

    Declaration

    Swift

    class TOTPMultiFactorGenerator : NSObject
  • Declaration

    Swift

    class TOTPSecret : NSObject
  • Utility class for constructing Twitter credentials.

    Declaration

    Swift

    class TwitterAuthProvider : NSObject
  • Represents a user. Firebase Auth does not attempt to validate users when loading them from the keychain. Invalidated users (such as those whose passwords have been changed on another client) are automatically logged out when an auth-dependent operation is attempted or when the ID token is automatically refreshed. This class is thread-safe.

    Declaration

    Swift

    class User : NSObject, UserInfo
  • Represents an object capable of updating a user’s profile data. Properties are marked as being part of a profile update when they are set. Setting a property value to nil is not the same as leaving the property unassigned.

    Declaration

    Swift

    class UserProfileChangeRequest : NSObject
  • A data class representing the metadata corresponding to a Firebase user.

    Declaration

    Swift

    class UserMetadata : NSObject