Jack Posted November 2, 2017 Report Share Posted November 2, 2017 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. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 2, 2017 Report Share Posted November 2, 2017 Please show your code. Quote Link to comment Share on other sites More sharing options...
Jack Posted November 2, 2017 Author Report Share Posted November 2, 2017 (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 November 2, 2017 by Jack Quote Link to comment Share on other sites More sharing options...
xLeeJYx Posted November 2, 2017 Report Share Posted November 2, 2017 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 Quote Link to comment Share on other sites More sharing options...
Jack Posted November 2, 2017 Author Report Share Posted November 2, 2017 (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 November 2, 2017 by Jack Quote Link to comment Share on other sites More sharing options...
Vanilla Posted November 2, 2017 Report Share Posted November 2, 2017 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 }); Vanilla 1 Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 2, 2017 Report Share Posted November 2, 2017 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. Quote Link to comment Share on other sites More sharing options...
Jack Posted November 3, 2017 Author Report Share Posted November 3, 2017 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.