Could not login
rafael-bianchi opened this issue · 0 comments
rafael-bianchi commented
I tried to log in with the following sample application:
try
{
var client = new FutClient();
var loginDetails = new LoginDetails("myemail@mail.com", "pwd", "secretanswer",
Platform.Ps4 /* or any of the other platforms */,
AppVersion.WebApp /* or AppVersion.CompanionApp */);
ITwoFactorCodeProvider provider = new FutAuth();// initialize an implementation of this interface
var loginResponse = client.LoginAsync(loginDetails, provider).Result;
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex}");
}
Console.ReadKey();
public class FutAuth : ITwoFactorCodeProvider
{
public TaskCompletionSource<string> taskResult = new TaskCompletionSource<string>();
public Task<string> GetTwoFactorCodeAsync(AuthenticationType authType)
{
Console.WriteLine($"{ DateTime.Now } Enter OTP ({ authType }):");
taskResult.SetResult(Console.ReadLine());
return taskResult.Task;
}
}
"Unable to get Phishing Token WebApp."
I thought it could be something with my authenticator app but when I wrote the wrong otp, I got a different error.
Any ideas I am doing wrong? Should I try to disable the two step security feature?
I am using the nuget package version 5.0.0-rc0003
Thanks!