Jump to content
McKay Development

jhonathan

Member
  • Posts

    3
  • Joined

  • Last visited

jhonathan's Achievements

  1. im using the correct one, but i dont know whats making error. i removed the sid variable and makes this. check this. its let me log in it correctly but then makes an error. :/ here's my code again. sorry for annoying.
  2. hello, when i'm trying to login in, i get this error "There was an error logging in! Error details: SteamGuardMobile" im adding my correct secret code from SDA here's my code. var SteamCommunity = require('steamcommunity'); var steam = new SteamCommunity(); var logOnOptions = { 'accountName': "username", 'password': "pw" }; 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); } else { console.log("Successfully logged in as " + logOnOptions.accountName); steam.chatLogon(); } }); var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var SteamID = SteamCommunity.SteamID; var steam = new SteamCommunity(); //var code = SteamTotp.generateAuthCode('shared secret code'); //console.log(code); var sid = new SteamID('[U:1:76471425]'); //console.log(sid.toString()); //Variables de Login var logOnOptions = { 'accountName': "username", 'password': "pw", 'twoFactorCode': SteamTotp.generateAuthCode('shared secret code') }; var identitySecret = "ident secret code"; //Funcion Login 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); } else { console.log("Successfully logged in as " + logOnOptions.accountName); steam.chatLogon(); } steam.startConfirmationChecker(10000, identitySecret); }); some help here :/ thanks you. other question: do i need to change steamID¿ i mean this "[U:1:76471425]"
×
×
  • Create New...