Jump to content
McKay Development

Where can i get shared_secret (Mobile Steam Guard)?


Recommended Posts

I have a little question: Where can i get shared_secret?
After the first run steam.login(), I got "steamguard". Which passed to the function generateAuthCode.
What am I doing wrong?
Thank you.
var SteamCommunity = require('steamcommunity');
var steam = new SteamCommunity();

var logOnOptions = {
accountName: 'user1',
password: 'passsssssssword',
// twoFactorCode: '72N37', 
twoFactorCode: SteamTotp.generateAuthCode('76561198035130610||snip')


//logs in via browser
steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) {

console.log(steamguard)  // '76561198035130610||snip'

if (err) {
console.log("There was an error logging in! Error details: " + err.message);
process.exit(1); //terminates program
} else {
console.log("Successfully logged in as " + logOnOptions.accountName);
Edited by Dr. McKay
Censored steam guard cookie
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.

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.

  • Create New...