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