authenticateUser static method

Future<void> authenticateUser(
  1. String email,
  2. String password, {
  3. MBManager? manager,
})

Authenticate a user with email and password.

  • Parameters:
    • email: The email.
    • password: The password.
    • manager: An optional MBManager used to make calls instead of MBManager.shared.
  • Returns a Future that completes when the user is authenticated correctly.

Implementation

static Future<void> authenticateUser(
  String email,
  String password, {
  MBManager? manager,
}) {
  return _authenticateUserWithParameters(
    {
      'mode': 'email',
      'email': email,
      'password': password,
    },
    manager: manager,
  );
}