question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: Asks for "Steam Guard" despite using Shared_Secret !

See original GitHub issue

console asks me “Steam Guard:” although I use shared_secret.

doesn’t ask when I start the bot for the first time, but every 30 minutes the bot shuts down and asks? “Steam Guard:”

My logOn Code:

const settings = {
	accountName: config.bot.name,
	password: config.bot.pass,
	twoFactorCode: SteamTotp.generateAuthCode(config.bot.shared_secret)
};

client.logOn(settings);

And websession code;

client.on('webSession', (sessionid, cookies) => {
	manager.setCookies(cookies, function(err) {
		if (err) {
			print(`${auto.log('info')} Err Cookies ${err}`);
                process.exit(1); // Fatal error since we couldn't get our API key
            }

            community.setCookies(cookies);
            community.startConfirmationChecker(30000, config.bot.identity_secret);

        }); 
});

setInterval(function() {
	if (client.steamID) {
		client.webLogOn();
	} else {
		client.logOn(settings);
		console.log("Again Re-Log");
	}
}, 1800000); //30Min.

Somebody please help me I’m going crazy I’ve been trying for weeks! i could not find a solution. maybe, this is a bug?.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mikelobamcommented, Jan 17, 2020

First of all, be careful with your speech;

1- I haven’t asked you this question, I’ve been looking for solutions for weeks, sharing my problem with people, and asking people who are developers, but it’s not clear. 2- I know what debug is, but I can’t get a useful output. 3- I shared the question from the forum, but I have not yet received a clear answer because there are not as many active users as github.

I hope these are enough for you. Because you don’t know what I’ve been doing for weeks.I don’t like to ask people questions without researching the solution of the problem.

And I never use the library without reading the readme section. Thank you.

1reaction
Ne3tCodecommented, Jan 17, 2020
  1. RTFM
  2. get it online
  3. learn to debug
  4. ask questions on the forum
Read more comments on GitHub >

github_iconTop Results From Across the Web

Steam asking for a verification code on start up and randomly
Hi. Since yesterday's maintenance, Steam has been telling me that I am attempting to log in from a new device (which is not...
Read more >
Why do I have to enter a Steam Guard code every time I log in?
If you are being repeatedly asked for a Steam Guard code on the same computer, you will need to ensure your browser has...
Read more >
Much time asking for Steam Guard App Code - node-steam-user
Codes change every 30 seconds. In practice, this means that a second login within a 30-second interval will be rejected and ask for...
Read more >
Steam's login method is kinda interesting - Hacker News
What if there is a different bug, and so a dev starts logging requests somewhere down the line? You accidentally start logging cleartext ......
Read more >
steam-user - npm
Have a question about the module or coding in general? Do not create a GitHub issue. GitHub issues are for feature requests and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found