private void OnKeyCallback(SteamUser.LoginKeyCallback obj) { var test = new SteamWeb(); var IsLoggedIn = false; do { IsLoggedIn = test.Authenticate(obj.UniqueID.ToString(), _client, _userNonce); if (!IsLoggedIn) { //Log.Warn("Authentication failed, retrying in 2s..."); Thread.Sleep(2000); } } while (!IsLoggedIn); var c**k = test.VerifyCookies(); var steamh = new SteamHandler(test); Token = steamh.GetNextTocken(); _client.Disconnect(); }
public SteamHandler(SteamWeb web) { _web = web; }