login method

Future<AuthSuccess> login(
  1. Session session, {
  2. required String email,
  3. required String password,
})

Logs in the user and returns a new session.

Throws an EmailAccountLoginException in case of errors, with reason:

Throws an AuthUserBlockedException if the auth user is blocked.

Implementation

Future<AuthSuccess> login(
  final Session session, {
  required final String email,
  required final String password,
}) async {
  return emailIdp.login(
    session,
    email: email,
    password: password,
  );
}