pub async fn login( client: &mut Client, login: &str, key: &str, login_type: LoginType, ) -> Result<LoginResponse, Error>
Logs in with the given credentials and returns a session token.