Jump to content
McKay Development

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

  • 2 months later...
Posted

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

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