Jump to content
McKay Development

connection problem - steamGuardmobile


jhonathan

Recommended Posts

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]" 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...