login method
- @Deprecated('This function is deprecated until further actions are taken my mangadex to introduce the new login methods')
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;
}