Jack Posted January 14, 2018 Report Share Posted January 14, 2018 (edited) const SteamUser = require('steam-user'); const User = new SteamUser; User.logOn({ 'accountName': <username>, 'password': <password>}); User.on('loggedOn', function() { console.log(User.emailInfo);}); "null" Docs say "Emitted on logon and when email info changes. The emailInfo property will be updated after this event is emitted." Isn't updating, though. Here's what `details` returns: "{ eresult: 1, out_of_game_heartbeat_seconds: 9, in_game_heartbeat_seconds: 9, public_ip: 387010462, rtime32_server_time: 1515897127, account_flags: 2101381, cell_id: 133, email_domain: null, steam2_ticket: null, eresult_extended: null, webapi_authenticate_user_nonce: 'VqFP8k12n6gM+8pbZf8', cell_id_ping_threshold: 11, use_pics: true, vanity_url: 'projectcrate8050', client_supplied_steamid: Long { low: 845356646, high: 17825793, unsigned: true }, ip_country_code: 'CA', parental_settings: null, parental_setting_signature: null, count_loginfailures_to_migrate: 0, count_disconnects_to_migrate: 0, ogs_data_report_time_window: null, client_instance_id: Long { low: -220505765, high: 776833051, unsigned: true }, force_client_update_check: null }" Edited January 14, 2018 by Jack Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 14, 2018 Report Share Posted January 14, 2018 You aren't waiting until it's emitted. It's emitted after login, not before login. Quote Link to comment Share on other sites More sharing options...
Jack Posted July 21, 2018 Author Report Share Posted July 21, 2018 I'm sorry, but I'm unable to figure out how it isn't coming after being logged in. I'm waiting for the event function specifically for when you're logged in to fire... what am I missing? Quote Link to comment Share on other sites More sharing options...
Revadike Posted July 21, 2018 Report Share Posted July 21, 2018 (edited) User.on('emailInfo', function(address, validated) { console.log({ address, validated });}); Edited July 21, 2018 by Royalgamer06 Quote Link to comment Share on other sites More sharing options...
Jack Posted July 30, 2018 Author Report Share Posted July 30, 2018 (edited) It still returns null in the callback of that function, despite `address` and `validated` both returning the expected results. I even get a SteamGuard code properly sent to my e-mail before that happens... what is going on? Edited July 30, 2018 by Jack Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 30, 2018 Report Share Posted July 30, 2018 Per the documentation, the emailInfo property is updated after all emailInfo event listeners fire. 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.