Jump to content


Photo

logOn method not working

node.js node-steam-user

Best Answer sarpdunno , 04 April 2019 - 03:21 PM

Stucked on steamGuard. I fixed thanks.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 sarpdunno

sarpdunno

    Newbie

  • Member
  • Pip
  • 4 posts

Posted 03 April 2019 - 02:07 PM

Hello logOn method not working. Stucked on "751"

 

I try debugging and my logs =>b2a7a0a6ff4a08b5ab156c92ebf4f2a1.png



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,187 posts

Posted 03 April 2019 - 07:37 PM

751 is LogOnResponse. Show your code, you probably did something wrong.



#3 CellSplitter

CellSplitter

    Member

  • Member
  • PipPip
  • 20 posts

Posted 03 April 2019 - 11:54 PM

Try this for Login

let client = new SteamUser(),
manager = new TradeOfferManager({
"steam": client,
"pollInterval": "10000",
"cancelTime": "1800000" // 30m in ms
}),
community = new SteamCommunity();
//Logging in
client.logOn({
accountName: CONFIG.USERNAME,
password: CONFIG.PASSWORD,
twoFactorCode: SteamTotp.getAuthCode(CONFIG.SHAREDSECRET)
});

client.on("loggedOn", function() {
client.getPersonas([client.steamID], (personas) => {
console.log("["+getTime()+"] " + " Logged in as " + personas[client.steamID].player_name + " [ " + client.steamID + " ].");
client.setPersona(SteamUser.Steam.EPersonaState.Online);

});
});

client.on("webSession", (sessionID, cookies) => {

manager.setCookies(cookies, (ERR) => {
if (ERR) {
console.log("## An error occurred while setting cookies.");
} else {
console.log("## Websession created and cookies set.");
}
});

Edited by CellSplitter, 04 April 2019 - 12:06 AM.


#4 sarpdunno

sarpdunno

    Newbie

  • Member
  • Pip
  • 4 posts

Posted 04 April 2019 - 03:21 PM   Best Answer

Stucked on steamGuard. I fixed thanks.







Also tagged with one or more of these keywords: node.js, node-steam-user

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users