iron Posted January 22, 2019 Report Share Posted January 22, 2019 Hello, I am trying to create a simple chat application that works with steam.But every time i have the user login, the user has to enter his steamGuard code, even when the sentryfiles are being saved to the dataDirectory. my steam-user object is made as follows:this.options = { autoRelogin: true, promptSteamGuardCode: false };this.client = new SteamUser(this.options); I currently login using:this.client.logOn({"accountName": username,"password": pass,"rememberPassword": true}); I also tried the setSentry method before calling the logOn method.this.client.setSentry(fs.readFileSync(path));Where path is the location of the sentryFile, i can see the sentry.USERNAME.bin files in my appdata. I also tried logging in with the loginKey recieved from the rememberPassword option, with no success. How do i make the steamGuard a one-time only thing, like it is supposed to be?I am probably missing something very simple.I have tried steam-user 4.0.0-beta.4 and 3.29.2, both have the same effect. Thanks for the effort beforehand, Iron. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 22, 2019 Report Share Posted January 22, 2019 I was unable to reproduce this on the v3 branch, but there is indeed a bug in v4 that prevents sentry files from being appropriately confirmed with Steam. It will be fixed in beta 5 to be published later today, but for the time being if you delete your sentry file and login with v3 and provide an email code, v4 should then work. Quote Link to comment Share on other sites More sharing options...
iron Posted January 23, 2019 Author Report Share Posted January 23, 2019 After deleting all node_modules and reinstalling all dependencies, the V4 beta 4 does not ask for a second steamGuard login if I use the loginKey supplied by the 'loginKey' event and do not supply a password, but do supply the username. let loginKey = fs.readFileSync(path).toString();this.client.logOn({"accountName": username,"rememberPassword": true,"loginKey": loginKey}); this works, and does not ask for a steamGuard login every time. If I cleanup the storage of the loginKey, I can let the user store and login to multiple accounts. Quote Link to comment Share on other sites More sharing options...
SpiTik Posted April 19, 2019 Report Share Posted April 19, 2019 After deleting all node_modules and reinstalling all dependencies, the V4 beta 4 does not ask for a second steamGuard login if I use the loginKey supplied by the 'loginKey' event and do not supply a password, but do supply the username. let loginKey = fs.readFileSync(path).toString();this.client.logOn({"accountName": username,"rememberPassword": true,"loginKey": loginKey}); this works, and does not ask for a steamGuard login every time. If I cleanup the storage of the loginKey, I can let the user store and login to multiple accounts.Please show me your save loginKey code please ^^ thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.