Jump to content
McKay Development

Ferdi342

Member
  • Posts

    2
  • Joined

  • Last visited

Ferdi342's Achievements

  1. Is it possible to login with steamcommunity and use steam-user, for example to talk in chat and accept/decline tradeoffers?
  2. 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
×
×
  • Create New...