budysvk Posted June 30, 2016 Report Share Posted June 30, 2016 Hello I am having other error. Code: community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); client.webLogOn(); }); And error in console: client is not defined. How to call weblogon function please? Thanks Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted June 30, 2016 Report Share Posted June 30, 2016 There is no webLogOn method in node-steamcommunity. That's part of node-steam-user. Quote Link to comment Share on other sites More sharing options...
budysvk Posted July 1, 2016 Author Report Share Posted July 1, 2016 Okay , now i am using community.login(account, login); when my session end , but only sometimes i cant log with bot, It says error in steamguard, my code: SteamTotp.getTimeOffset(function(err, offset, latency) { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset); account.auth = false; logger.debug(account); community.login(account, login); }); i can login when i run node but when trying refresh session: community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); community.login(account, login); console.log('=========================REFRESHING SESSION========================='); }); It says: Error SteamGuard , only sometimes, and sometimes trying to log many times and display error: Too many attempts Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 1, 2016 Report Share Posted July 1, 2016 You're probably trying to reuse a code. They're only good once. Quote Link to comment Share on other sites More sharing options...
budysvk Posted July 1, 2016 Author Report Share Posted July 1, 2016 Than What i need to do? Quote Link to comment Share on other sites More sharing options...
budysvk Posted July 1, 2016 Author Report Share Posted July 1, 2016 I need to call it like first time with offset and generating code in session expired? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 1, 2016 Report Share Posted July 1, 2016 You should make sure that you aren't reusing a code. If you are, then you're logging in more than twice in 30 seconds and that means that you're doing something else wrong. Quote Link to comment Share on other sites More sharing options...
budysvk Posted July 1, 2016 Author Report Share Posted July 1, 2016 Thank you so much I tried do login like when logging first time, now it works you are awesome.... im just dumb Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.