AuthService class

Implemented types

Constructors

AuthService(AuthDbProvider authDbProvider)

Properties

authDbProvider AuthDbProvider
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

changePassword(String id, {required String oldPassword, required String newPassword}) Future<void>
checkUserVerified(String userId) Future<bool?>
createVerifyEmailToken(String email, {required Duration? allowNewJwtAfter, required Duration? verifyLinkExpiresAfter}) Future<String>
deleteAuthData(String userId) Future<void>
delete auth user data with the jwt data
deleteUserData(String id) Future<void>
forgetPassword(String email) Future<void>
fullyDeleteUser(String id) Future<void>
loginWithEmail({required String email, required String password}) Future<String>
loginWithJWT(String jwt) Future<String?>
if the jwt is valid and allowed then it will return user id else null
logout(String jwt) Future<void>
logoutFromAllDevices(String id) Future<void>
markUserVerified(String jwt) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerUser({required String email, required String password, Map<String, dynamic> userData = const {}, String? customUserID}) Future<String>
this will return a jwt for the user to use to sign in again without the need of the email and password again
toString() String
A string representation of this object.
inherited
updateUserData(String id, Map<String, dynamic> updateDoc) Future<void>

Operators

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