MongoDbAuthProvider class

Inheritance
Implemented types

Constructors

MongoDbAuthProvider(App app, DbService dbService)

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

Operators

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