Jump to content


Photo
Question

Session expire

node.js node-steamcommunity

  • Please log in to reply
No replies to this topic

#1 budysvk

budysvk

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 18 May 2017 - 09:39 AM

Hello. I would like to thanks everyone for helping me first. I am really glad.

 

I have a problem with steam bot. The problem is that he logs in normally than refreshing sessions etc everything is okay but after 2 days or more when refreshing session i get error Invalid RSA key recieved and than it ends. So I need to start it manually again.

 

community.on('sessionExpired', function(err) {
	if (err) {
		console.log('sessionExpired: '+err);
	}

	community.stopConfirmationChecker();
    SteamTotp.getTimeOffset(function(err, offset, latency) {
    account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset);
	community.login(account, login);
	});
	console.log('=========================REFRESHING SESSION=========================');
});

There is my code. 

 

Thank you very much for fast reponse.

 







Also tagged with one or more of these keywords: Question, node.js, node-steamcommunity

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users