ExaAuthDatasource class
A datasource for authentication operations using Firebase Authentication.
- Inheritance
-
- Object
- IExaAuthDatasource
- ExaAuthDatasource
Constructors
- ExaAuthDatasource({bool containsMerge = true, required FirebaseAuth firebaseAuth})
-
Constructs an instance of ExaAuthDatasource.
containsMergeindicates whether to merge accounts or not.firebaseAuthis the FirebaseAuth instance.
Properties
- containsMerge → bool
-
final
- firebaseAuth → FirebaseAuth
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMerge → bool
-
Determines if merge is supported.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAppleCredential(
) → Future< Either< AuthFailure, OAuthCredential?> > -
override
-
getCurrentUser(
) → Future< Either< AuthFailure, ExaAuthUser?> > -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendSMSToken(
{required String verificationId, required String smsToken}) → Future< Either< AuthFailure, ExaAuthUser?> > -
Sends an SMS token for phone number authentication.
Returns an Either containing AuthFailure or ExaAuthUser.
override
-
signInPhone(
{required String phoneNumber, required dynamic verificationCompleted(ExaAuthUser), required dynamic verificationFail(AuthFailure), required dynamic codeSent(String?, int?), int? seconds, int? forceResendingToken}) → Future< void> -
Initiates phone number sign-in process.
Calls callbacks based on the verification process.
override
-
signInWithApple(
{required String clientId}) → Future< Either< AuthFailure, ExaAuthUser?> > -
Signs in using Apple authentication.
override
-
signInWithCredential(
{required AuthCredential credential}) → Future< void> -
override
-
signInWithGmail(
) → Future< Either< AuthFailure, ExaAuthUser?> > -
Signs in using Google authentication.
override
-
sigOut(
) → Future< Either< AuthFailure, ExaAuthUser?> > -
Signs out the current user.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited