Jump to content
McKay Development

Recommended Posts

Posted

Hey, just starting out. Seems like a great library. Great moves, keep it up, proud of you.

 

I'm stuck at the `logOn` function, though.

 

 

First off, regardless of whether `twoFactorCode` is provided in the object, I still get prompted for a mobile authentication code. Although I'm not sure how providing it in the script would work because the script needs to be run to be prompted for it.

 

When the code gets entered though, nothing ever happens. The terminal just sits there. Nothing ever even seems to time out.

 

I tried logging in with another account that uses an e-mail code, and the same thing happened. It just sits there.

 

Thanks for the patience to whoever replies.

Posted (edited)


var SteamUser = require('steam-user');
var newUser = new SteamUser();


details = {
    accountName: '<username>',
    password: '<password>'
}


newUser.logOn(details);


 

Sorry again for whatever obvious thing I'm missing.

Edited by Jack
Posted

 

var SteamUser = require('steam-user');
var newUser = new SteamUser();


details = {
    accountName: '<username>',
    password: '<password>'
}


newUser.logOn(details);
 
Sorry again for whatever obvious thing I'm missing.

 

var SteamUser = require('steam-user');
var newUser = new SteamUser();


var details = {
   "accountName": '<username>',
   "password": '<password>'
}


newUser.logOn(details);

Try doing this

Posted (edited)

Didn't do anything, still just sits there for infinity.

 

Edit: Tried it on Linux, and the same thing. I figured maybe some weird problem with Windows, but no.

Man, I'll be fascinated to see what the problem was.

Edited by Jack
Posted

maybe this?

var SteamUser = require('steam-user');
var newUser = new SteamUser();


details = {
    accountName: '<username>',
    password: '<password>'
}


newUser.logOn(details);

newUser.on('loggedOn', function (details) {
    console.log('Sucesfully Logged in');
    //do something
});
Posted

 

maybe this?

var SteamUser = require('steam-user');
var newUser = new SteamUser();


details = {
    accountName: '<username>',
    password: '<password>'
}


newUser.logOn(details);

newUser.on('loggedOn', function (details) {
    console.log('Sucesfully Logged in');
    //do something
});

 

This, it seemed to not be doing anything because you didn't actually have it do anything once it was logged on.

Posted

This, it seemed to not be doing anything because you didn't actually have it do anything once it was logged on.

 

There we go, haha

 

I read the docs, I swear.

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