Jump to content
McKay Development

jhonathan

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by jhonathan

  1. 7 hours ago, Dr. McKay said:

    I guess you're not using the correct shared secret.

    I don't know why you'd need to instantiate that sid variable, but that input format is correct regardless.

    im using the correct one, but i dont know whats making error.

    i removed the sid variable and makes this. check this.

    image.png.3bba477a8ac990fabb31206cef48eee3.png

    its let me log in it correctly but then makes an error. :/ 

    here's my code again. sorry for annoying. 

    image.thumb.png.44aa1b91e0023481b6eff06a52be1e41.png

     

  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...