Jump to content


Photo

TypeError: callback is not a function on loggedIn event

node.js node-steamcommunity

  • Please log in to reply
1 reply to this topic

#1 Kulagin

Kulagin

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 11 March 2019 - 03:46 AM

Why doesn't this work?

const SteamCommunity = require('steamcommunity');
let community = new SteamCommunity();

community.login({
"accountName": "accountName",
"password": "password",
});

community.loggedIn(() => {
console.log("test");
});

Of course, I use proper login and password.

 

And I get this when I run it:

SIf3LWl.png



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,070 posts

Posted 11 March 2019 - 02:44 PM

You need to supply a callback to login. And also loggedOn is always going to be false in that code (not that you're checking that, for some reason).







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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users