firebase_auth library

Classes

ActionCodeInfo
A response from calling checkActionCode.
ActionCodeSettings
Interface that defines the required continue/state URL with optional Android and iOS bundle identifiers.
AdditionalUserInfo
A structure containing additional user information from a federated identity provider.
AppleAuthCredential
The auth credential returned from calling AppleAuthProvider.credential.
AppleAuthProvider
This class should be used to either create a new Apple credential with an access code, or use the provider to trigger user authentication flows.
AppleFullPersonName
AuthCredential
Interface that represents the credentials returned by an auth provider. Implementations specify the details about each auth provider's credential requirements.
AuthProvider
A base class which all providers must extend.
ConfirmationResult
A result from a phone number sign-in, link, or reauthenticate call.
EmailAuthCredential
The auth credential returned from calling EmailAuthProvider.credential.
EmailAuthProvider
A EmailAuthCredential can be created by calling EmailAuthProvider.credential with an email and password.
FacebookAuthCredential
The auth credential returned from calling FacebookAuthProvider.credential.
FacebookAuthProvider
This class should be used to either create a new Facebook credential with an access code, or use the provider to trigger user authentication flows.
FirebaseAuth
The entry point of the Firebase Authentication SDK.
GameCenterAuthCredential
The auth credential returned from calling GameCenterAuthProvider.credential.
GameCenterAuthProvider
This class should be used to create a new Game Center credential to trigger an authentication flow on Apple platform.
GithubAuthCredential
The auth credential returned from calling GithubAuthProvider.credential.
GithubAuthProvider
This class should be used to either create a new GitHub credential with an access code, or use the provider to trigger user authentication flows.
GoogleAuthCredential
The auth credential returned from calling GoogleAuthProvider.credential.
GoogleAuthProvider
This class should be used to either create a new Google credential with an access code, or use the provider to trigger user authentication flows.
IdTokenResult
Interface representing ID token result obtained from getIdTokenResult. It contains the ID token JWT string and other helper properties for getting different data associated with the token as well as all the decoded payload claims.
MicrosoftAuthCredential
The auth credential returned from calling MicrosoftAuthProvider.credential.
MicrosoftAuthProvider
This class should be used to either create a new Microsoft credential with an access code, or use the provider to trigger user authentication flows.
MultiFactor
Defines multi-factor related properties and operations pertaining to a User. This class acts as the main entry point for enrolling or un-enrolling second factors for a user, and provides access to their currently enrolled factors.
MultiFactorAssertion
Represents an assertion that the Firebase Authentication server can use to authenticate a user as part of a multi-factor flow.
MultiFactorInfo
Represents a single second factor means for the user.
MultiFactorResolver
Utility class that contains methods to resolve second factor requirements on users that have opted into two-factor authentication.
MultiFactorSession
Identifies the current session to enroll a second factor or to complete sign in when previously enrolled.
OAuthCredential
A generic OAuth credential.
OAuthProvider
A generic provider instance.
PhoneAuthCredential
The auth credential returned from calling PhoneAuthProvider.credential.
PhoneAuthProvider
This class should be used to either create a new Phone credential with an verification ID and SMS code.
PhoneMultiFactorGenerator
Provider for generating a PhoneMultiFactorAssertion.
PhoneMultiFactorInfo
Represents the information for a phone second factor.
PlayGamesAuthCredential
The auth credential returned from calling PlayGamesAuthProvider.credential.
PlayGamesAuthProvider
This class should be used to either create a new Play Games credential with an access code, or use the provider to trigger user authentication flows.
RecaptchaVerifier
An reCAPTCHA-based application verifier.
SAMLAuthProvider
Security Assertion Markup Language based provider.
TotpMultiFactorGenerator
Provider for generating a PhoneMultiFactorAssertion.
TotpMultiFactorInfo
Represents the information for a phone second factor.
TotpSecret
TwitterAuthCredential
The auth credential returned from calling TwitterAuthProvider.credential.
TwitterAuthProvider
This class should be used to either create a new Twitter credential with an access code, or use the provider to trigger user authentication flows.
User
A user account.
UserCredential
A UserCredential is returned from authentication requests such as createUserWithEmailAndPassword.
UserInfo
User profile information, visible only to the Firebase project's apps.
UserMetadata
Interface representing a user's metadata.
YahooAuthCredential
The auth credential returned from calling YahooAuthProvider.credential.
YahooAuthProvider
This class should be used to either create a new Yahoo credential with an access code, or use the provider to trigger user authentication flows.

Enums

ActionCodeInfoOperation
The type of operation that generated the action code from calling checkActionCode.
Persistence
An enumeration of the possible persistence mechanism types.
RecaptchaVerifierSize
A enum to represent a reCAPTCHA widget size.
RecaptchaVerifierTheme
A enum to represent a reCAPTCHA widget theme.

Typedefs

PhoneCodeAutoRetrievalTimeout = void Function(String verificationId)
Typedef for handling automatic phone number timeout resolution.
PhoneCodeSent = void Function(String verificationId, int? forceResendingToken)
Typedef for handling when Firebase sends a SMS code to the provided phone number.
PhoneVerificationCompleted = void Function(PhoneAuthCredential phoneAuthCredential)
Typedef for a automatic phone number resolution.
PhoneVerificationFailed = void Function(FirebaseAuthException error)
Typedef for handling errors via phone number verification.
RecaptchaVerifierOnError = void Function(FirebaseAuthException exception)
Called when the reCAPTCHA widget errors (such as a network error).
RecaptchaVerifierOnExpired = void Function()
Called when the time to complete the reCAPTCHA widget expires.
RecaptchaVerifierOnSuccess = void Function()
Called on successful completion of the reCAPTCHA widget.

Exceptions / Errors

FirebaseAuthException
Generic exception related to Firebase Authentication. Check the error code and message for more details.
FirebaseAuthMultiFactorException
MultiFactor exception related to Firebase Authentication. Check the error code and message for more details.
FirebaseException
A generic class which provides exceptions in a Firebase-friendly format to users.