AuthController<T extends Auth<AuthKeys>> class abstract

Implementers

Constructors

AuthController()

Properties

auth Future<T?>
no setter
error String
no setter
hashCode int
The hash code for this object.
no setterinherited
isBiometricEnabled Future<bool>
no setter
isLoggedIn Future<bool>
no setter
liveError → AuthNotifier<String>
no setter
liveLoading → AuthNotifier<bool>
no setter
liveMessage → AuthNotifier<String>
no setter
liveState → AuthNotifier<AuthState>
no setter
liveUser → AuthNotifier<T?>
no setter
loading bool
no setter
message String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state AuthState
no setter
user → T?
no setter

Methods

addBiometric({required SignByBiometricCallback callback, BiometricConfig? config}) Future<Response<bool>>
biometricEnable(bool enabled) Future<Response<bool>>
delete() Future<AuthResponse<T>>
dispose() → void
emit(AuthResponse<T> data) Future<AuthResponse<T>>
initialize([bool initialCheck = true]) Future<T?>
isSignIn([AuthProviders? provider]) Future<AuthResponse<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signInByApple({OAuthAuthenticator? authenticator, bool storeToken = false}) Future<AuthResponse<T>>
signInByBiometric({BiometricConfig? config}) Future<AuthResponse<T>>
signInByEmail(EmailAuthenticator authenticator, {SignByBiometricCallback? onBiometric}) Future<AuthResponse<T>>
signInByFacebook({OAuthAuthenticator? authenticator, bool storeToken = false}) Future<AuthResponse<T>>
signInByGithub({OAuthAuthenticator? authenticator, bool storeToken = false}) Future<AuthResponse<T>>
signInByGoogle({OAuthAuthenticator? authenticator, bool storeToken = false}) Future<AuthResponse<T>>
signInByOtp(OtpAuthenticator authenticator, {bool storeToken = false}) Future<AuthResponse<T>>
signInByPhone(PhoneAuthenticator authenticator, {PhoneMultiFactorInfo? multiFactorInfo, MultiFactorSession? multiFactorSession, Duration timeout = const Duration(minutes: 2), void onComplete(PhoneAuthCredential credential)?, void onFailed(FirebaseAuthException exception)?, void onCodeSent(String verId, int? forceResendingToken)?, void onCodeAutoRetrievalTimeout(String verId)?}) Future<AuthResponse<T>>
signInByUsername(UsernameAuthenticator authenticator, {SignByBiometricCallback? onBiometric}) Future<AuthResponse<T>>
signOut([AuthProviders provider = AuthProviders.none]) Future<AuthResponse<T>>
signUpByEmail(EmailAuthenticator authenticator, {SignByBiometricCallback? onBiometric}) Future<AuthResponse<T>>
signUpByUsername(UsernameAuthenticator authenticator, {SignByBiometricCallback? onBiometric}) Future<AuthResponse<T>>
toString() String
A string representation of this object.
inherited
update(Map<String, dynamic> data) Future<T?>
verifyPhoneByOtp(OtpAuthenticator authenticator) Future<AuthResponse<Auth<AuthKeys>>>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getInstance<T extends Auth<AuthKeys>>({OAuthDelegates? oauth, BackupDelegate<T>? backup, AuthMessages? messages}) AuthController<T>