I log in alike:
client.logOn({
'accountName': login,
'password': pass,
'twoFactorCode': SteamTotp.getAuthCode(shared_secret)
});It works. But sometimes, Totp generate a code too late, and I get require for another guard code directly in putty console. How to retry log in automatically if code is not valid anymore? Also, I don't get any events from 'steamGuard' or 'error'.