loginWithEmailAndPassword method

  1. @override
Future<LoginResponse> loginWithEmailAndPassword(
  1. String email,
  2. String password,
  3. BuildContext context, {
  4. dynamic onMFA(
    1. 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);