Jump to content
McKay Development

Adam

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Adam

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

×
×
  • Create New...