Ferdi342 Posted April 9, 2016 Report Posted April 9, 2016 Hello, i'm trying to do a simple login method using steam-community. The bot has 2FA enabled with a mobile device. I use the following code: var SteamCommunity = require('steamcommunity'); var steam = new SteamCommunity(); var SteamTotp = require('steam-totp'); var logOnOptions = { accountName: "accUsername", password: "accPassword", twoFactorCode: SteamTotp.generateAuthCode("mySharedSecret") }; steam.login(logOnOptions, function(err, sessionID, cookies, steamguard){ 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); steam.chatLogon(); manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); } }); } }); Well the problem is that when i'm trying to login with this code, console returns me Error: SteamGuardMobile, and as the documentation says this error means If your login failed due to Steam Guard and the user has app-based authentication enabled, the message property will be SteamGuardMobile. Login again and provide the app code as twoFactorCode to the details object. But the funny fact is I'm using the twoFactorCode on the details object, and my sharedsecret is correct. Why I'm having this issue? Thanks a lot Quote
Guest akagna Posted April 17, 2016 Report Posted April 17, 2016 Is your clock right?How can i understand it and how can i change it? Thanks alot. Quote
Guest akagna Posted April 17, 2016 Report Posted April 17, 2016 (edited) Edit: Its working. Hello, i'm trying to do a simple login method using steam-community. The bot has 2FA enabled with a mobile device. I use the following code: var SteamCommunity = require('steamcommunity'); var steam = new SteamCommunity(); var SteamTotp = require('steam-totp'); var logOnOptions = { accountName: "accUsername", password: "accPassword", twoFactorCode: SteamTotp.generateAuthCode("mySharedSecret") }; steam.login(logOnOptions, function(err, sessionID, cookies, steamguard){ 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); steam.chatLogon(); manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); } }); } }); Well the problem is that when i'm trying to login with this code, console returns me Error: SteamGuardMobile, and as the documentation says this error means If your login failed due to Steam Guard and the user has app-based authentication enabled, the message property will be SteamGuardMobile. Login again and provide the app code as twoFactorCode to the details object. But the funny fact is I'm using the twoFactorCode on the details object, and my sharedsecret is correct. Why I'm having this issue? Thanks a lot Helloo i found the problem my friend. Steam Guard is for email logins you have to change like that. I was have same problem. steam.login(logOnOptions, function(err, sessionID, cookies, SteamGuardMobile){ Edited April 17, 2016 by akagna 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.