New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use LoginKey? #387
Comments
Are you using Two Factor Authentication (aka Mobile Authentication) or Email Authentication? If you use Two Factor Authentication, you have to just generate a code on every login, obviously. If you are using Email Authentication, you will just use the email code once, then Steam will ask you to store the sentryfile data.
Then you would use it like so, every time you log in:
There is no need to save the LoginKey, as you simply wont use it to log in. Hope it helps! Cheers |
Thanks for the reply, but the thing I'm actually looking for is to be able to login without entering a password. For testing, I used an account without Steam Guard enabled. |
Oh ok, not sure if that is possible. |
Hmm, haven't ever used this, and I don't rly have a need to. I just code my own trading bot, lots of sensitive information there anyway. |
Yea, I just store the info inside of the code for my own bots, but when making bots for others, it would be great to store it. Right now I just take it, encrypt it and then store it, but if there was a built in way to do it, I figured I could just use that instead. |
Works for me, @kraxarn. Can you share a fully runnable sample? Here's what I'm testing with. Run it once with username and password, then again with just the username.
|
Tried with the same account and that worked just fine! Thanks, I'll check what I did wrong in my code and see. Noticed you have Weirdly enough, it just decided to work now without changing any code... Weird... |
Closing as inactive and solved with example or by itself, who knows. |
Solved by itself I guess. Thought I closed the issue though, my bad. |
I can't seem to figure out how to use the LoginKey to save login and use it later. For testing, I store the LoginKey as a string.
First login:
Then a LoginKeyCallback
configPath is just a path to a writable directory where the loginkey gets saved.
But when then trying to login a second time
That fails with the error InvalidPassword. I also tried combining it with a sentry hash, but without success.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: