AuthPlugin<TUser extends User> class abstract

An authentication plugin that supports various authentication methods.

Inheritance
Implementers

Constructors

AuthPlugin({required String name, required String title})
Creates an instance of AuthPlugin.

Properties

controller StreamController<TUser>
The controller for the user changes stream.
getter/setter pair
currentUser → TUser
The current user that is signed in.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
finalinherited
userChanges Stream<TUser>
A stream of user changes.
no setter

Methods

deleteAccount() Future<void>
Deletes the current user account.
dispose() Future<void>
override
init() Future<void>
override
loginAnonymously() Future<void>
loginWithEmailPassword({required String email, required String password}) Future<void>
loginWithOAuth(OAuthType type) Future<void>
loginWithPhoneOtp({required String phoneNumber, required String otp}) Future<void>
logout() Future<void>
Logs out the current user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerWithEmailPassword({required String email, required String password}) Future<void>
sendPasswordResetEmail({required String email}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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