Closed serge1peshcoff closed 8 years ago
AFAIK you need to provide two_factor_code every time. EResult values can be found here.
Closing since this is a Steam protocol issue rather than a library issue.
Just fyi, once you switch to 2FA, sentry file serves no purpose and is basically ignored.
@scholtzm Perhaps you would be interested in adding this information to the wiki?
Added a short note.
AFAIK you need to provide two_factor_code every time. EResult values can be found here.
Is it possible to somehow save 2FA on the server?
@yesworld You can generate 2FA codes programatically with steam-totp
.
Thanks for the answer! Last questions, how can I get shared_secret to generate through the steam-totp?
2FA should be used every time the bot is restarted? Or I somehow can save the session, so I don't have to generate the code every time? Similar to option logOnOptions.sha_sentryfile..
So, I am trying to write a bot using this module. I want to login use 2FA. It works, when I provide an
two_factor_code
, but fails if I provide onlysha_sentryfile
with error_code 85. Here is my code:When I use geniune two_factor_code, here is the output:
But when sentry file is present, here is what I am getting:
What am I doing wrong, if so?