Rellfy Posted May 18, 2017 Report Posted May 18, 2017 Hello!I'm getting the Sentry file from the 'steam' module. When I try to logon using this module, I set the sentry file and it still requests me to input the Steam Guard code. Here's how I'm getting the sentry from Steam.SteamUser:function MakeSha(bytes) {var hash = crypto.createHash('sha1');hash.update(bytes);return hash.digest();}this.steamClientUser.on('updateMachineAuth', (sentry, cb) => { fs.writeFileSync(/* path */, sentry.bytes);// Method which uses steam-user module this.loginWithSentry(); cb({ sha_file: MakeSha(sentry.bytes) });this.steamClient.disconnect();});And here, how I set the sentry, reading from the file that was written in the above code.let sentryFile = fs.readFileSync((/* path */));this.steamUser.setSentry(sentryFile);this.steamUser.logOn({accountName: this.username,password: this.password});After this, the console asks for the steam guard code, apparently ignoring the sentry.PS: The sentry file is actually 2KB. Quote
Dr. McKay Posted May 18, 2017 Report Posted May 18, 2017 There's no reason why that shouldn't work, besides the sentry not being valid for your account. Quote
Rellfy Posted May 18, 2017 Author Report Posted May 18, 2017 Indeed. As I said in the github issue, I believe it's a problem with the other module. When I get the sentry from steam-user, it works without any problems, as it should. Quote
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.