AuthDbProvider class abstract

this is to provide the auth service with db provider either memory or mongo db or other db to auth users

Implementers

Constructors

AuthDbProvider(App app, DbService dbService)
const

Properties

app App
final
dbService DbService
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>
checkIfJwtIsActive(JWTPayloadModel jwt) Future<bool>
checkUserVerified(String userId) Future<bool?>
createJwtAndSave(String id, String email) Future<String>
createVerifyEmailToken(String email, {required Duration? allowNewJwtAfter, required Duration? verifyLinkExpiresAfter}) Future<String>
deleteAuthData(String id) Future<void>
deleteUserData(String id) Future<void>
forgetPassword(String email) Future<void>
fullyDeleteUser(String id) Future<void>
getUserByEmail(String email) Future<AuthModel?>
getUserById(String id) Future<AuthModel?>
logout(String jwt) Future<void>
logoutFromAllDevices(String id) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveUserAuth(AuthModel authModel) Future<bool>
saveUserData(Map<String, dynamic> userData) Future<bool>
toString() String
A string representation of this object.
inherited
updateUserData(String id, Map<String, dynamic> updateDoc) Future<void>
verifyUser(String jwt) Future<void>

Operators

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