Jump to content
McKay Development

Recommended Posts

Posted

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'.

 

bbc34b25c26a907b4161d64787f209c7-full.pn

Posted (edited)

Please read the documentation, specifically the options.

 

Sure I did. But now I see: client.setOption('promptSteamGuardCode', false);

Now 'steamGuard' event is works. 

Edited by Nwton

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...