loginWithEmailAndPassword method
- String email,
- String password,
- BuildContext context, {
- dynamic onMFA(
- dynamic resolver
override
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.
Implementation
@override
Future<LoginResponse> loginWithEmailAndPassword(
String email,
String password,
BuildContext context, {
// ignore: avoid_annotating_with_dynamic
Function(dynamic resolver)? onMFA,
}) async =>
const LoginResponse(loginSuccessful: true, userObject: null);