Jump to content
McKay Development

loggedOn not catching


Adam

Recommended Posts

Hi,

I have the following code and am trying to check whether the app is able to log into steam or not. 

For whatever reason, the error is caught but the loggOn event never occurs

 

Any ideas how to fix this?

 

const client = new SteamUser();
const logOnOptions = {
accountName: req.body.username,
password: req.body.password,
twoFactorCode: req.body.tfa

};

 
client.logOn(logOnOptions);

client.on('loggedOn', () => {
console.log('Hi!');
});

client.on('error', () => {
console.log('This is one dumb human')
});

 

Any thoughts?

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...