jhonathan Posted December 13, 2020 Report Posted December 13, 2020 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]" Quote
Dr. McKay Posted December 13, 2020 Report Posted December 13, 2020 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. Quote
jhonathan Posted December 13, 2020 Author Report Posted December 13, 2020 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. its let me log in it correctly but then makes an error. :/ here's my code again. sorry for annoying. Quote
Dr. McKay Posted December 13, 2020 Report Posted December 13, 2020 Well, you're logging in twice and only once with an auth code. Of course the login attempt without a code is going to fail. jhonathan 1 Quote
jhonathan Posted December 14, 2020 Author Report Posted December 14, 2020 10 hours ago, Dr. McKay said: Well, you're logging in twice and only once with an auth code. Of course the login attempt without a code is going to fail. ohhh... thx you for help Quote
Recommended Posts
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.