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