login method

  1. @Deprecated('This function is deprecated until further actions are taken my mangadex to introduce the new login methods')
Future<Login> login(
  1. String username,
  2. String password
)

Endpoint used: POST /auth/login

Returns the a Login class instance with a JWT session and refresh token for username.

Implementation

@Deprecated(
    'This function is deprecated until further actions are taken my mangadex to introduce the new login methods')
Future<Login> login(String username, String password) async {
  var result = await AuthRepository.login(username, password);
  _token = result.token;
  return result;
}