Jump to content
McKay Development

.logOn just never does anything


Jack

Recommended Posts

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.

Link to comment
Share on other sites



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
Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

 

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.

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