diff --git a/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs b/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs index 4dfb8d0..4b4722e 100644 --- a/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs +++ b/PokemonGo.RocketAPI/Login/GoogleLoginGPSOAuth.cs @@ -10,7 +10,7 @@ namespace PokemonGo.RocketAPI.Login { public static class GoogleLoginGPSOAuth { - public static async Task DoLogin(string username, string password) + public static string DoLogin(string username, string password) { GPSOAuthClient client = new GPSOAuthClient(username, password); Dictionary response = client.PerformMasterLogin(); diff --git a/PokemonGo.RocketAPI/Rpc/Login.cs b/PokemonGo.RocketAPI/Rpc/Login.cs index 9eba673..d3cf3da 100644 --- a/PokemonGo.RocketAPI/Rpc/Login.cs +++ b/PokemonGo.RocketAPI/Rpc/Login.cs @@ -27,7 +27,7 @@ public async Task DoGoogleLogin(string username,string password) { _client.AuthType = AuthType.Google; - _client.AuthToken = await GoogleLoginGPSOAuth.DoLogin(username, password); + _client.AuthToken = GoogleLoginGPSOAuth.DoLogin(username, password); await SetServer(); /*