private void DoRequest(TaskCompletionSource <ISpinCredentials> task)
        {
            string login    = PlayerPreferences.useGuest ? PlayerPreferences.guestLogin : PlayerPreferences.lastLogin;
            string password = PlayerPreferences.useGuest ? PlayerPreferences.guestPassword : PlayerPreferences.lastPassword;

            HaapiManager.ExecuteRequest(() => HaapiManager.accountApi.CreateTokenWithPassword(login, password, (long?)ApplicationConfig.GameAppId), delegate(RAccountApi <Token> res)
            {
                Log.Info("CreateTokenWithPassword success ! Login="******"C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\TEMPFastEnterMatch\\Auth\\ConnectionMethod\\ICredentialProvider.cs");
                task.SetResult(new AnkamaTokenCredentials(res.Data.get__Token()));
            }, delegate(Exception exception)
            {
                ApiException val = exception as ApiException;
                if (val != null && val.get_ErrorCode() == 601)
                {
                    Log.Error($"CreateTokenWithPassword error: {exception}", 284, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\TEMPFastEnterMatch\\Auth\\ConnectionMethod\\ICredentialProvider.cs");
                    ErrorAccountLogin val2 = JsonConvert.DeserializeObject <ErrorAccountLogin>((string)val.get_ErrorContent());
                    SpinConnectionError spinConnectionError = (val2 == null) ? null : HaapiHelper.From(val2);
                    task.SetException(spinConnectionError ?? exception);
                }
                else
                {
                    Log.Error($"CreateTokenWithPassword error: {exception}", 291, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\TEMPFastEnterMatch\\Auth\\ConnectionMethod\\ICredentialProvider.cs");
                    task.SetException(exception);
                }
            });
        }