LocalLoginService class

A local login service for testing purposes.

Implemented types

Constructors

LocalLoginService()

Properties

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

Methods

getLoggedInUser() Future
getLoggedInUser is used to get the currently logged in user.
override
loginWithEmailAndPassword(String email, String password, BuildContext context, {dynamic onMFA(dynamic resolver)?}) Future<LoginResponse>
loginWithEmailAndPassword is used to login a user with email and password. If the login is successful, the response will contain a LoginResponse with the user object. If the login is not successful, the response will contain an Error object with the error title and message. Optionally, you can provide an onMFA function to handle multi-factor authentication.
override
logout(BuildContext context) Future<bool>
logout is used to log out the currently logged in user.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestChangePassword(String email, BuildContext context) Future<RequestPasswordResponse>
requestChangePassword is used to request a password reset. If the request is successful, the response will contain a RequestPasswordResponse with requestSuccesfull set to true.
override
toString() String
A string representation of this object.
inherited

Operators

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