yesworld Posted September 24, 2019 Report Share Posted September 24, 2019 (edited) Hi, 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')};console.log(logOnOptions)//logs in via browsersteam.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 September 24, 2019 by Dr. McKay Censored steam guard cookie Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 24, 2019 Report Share Posted September 24, 2019 Your shared_secret is retrieved from enabling mobile two factor using steamcommunity. If you don't have a mobile authenticator enabled on your account, then you can't use generateAuthCode and you need to get a code from your email instead. 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.