Jump to content
McKay Development

Logon with Sentry, requests Auth Code


Rellfy

Recommended Posts

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.
Link to comment
Share on other sites

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