jisa_poiur Posted December 24, 2023 Report Posted December 24, 2023 When trying to authorize and installed Steam Guard through the application, in the application itself pops up a proposal to allow login from the device, I would like to know if you can somehow catch this event so that you do not have to wait for the code from the user? I'm using node-steam-user 5.0.4. Quote
Dr. McKay Posted December 24, 2023 Report Posted December 24, 2023 You can do this with steam-session (see example), but not with steam-user only. Quote
jisa_poiur Posted December 24, 2023 Author Report Posted December 24, 2023 9 minutes ago, Dr. McKay said: You can do this with steam-session (see example), but not with steam-user only. I also want to ask, perhaps somewhere there are events that I have not found, but when the event with errors InvalidPassword / RateLimitExceeded - then how to end login attempts? I'm stupid so I apologize Quote
Dr. McKay Posted December 24, 2023 Report Posted December 24, 2023 If steam-user emits the error event, it's no longer attempting login. You can consider the error event to indicate a fatal error that has resulted in steam-user ceasing all operations unless you call logOn again. Quote
jisa_poiur Posted December 24, 2023 Author Report Posted December 24, 2023 27 minutes ago, Dr. McKay said: If steam-user emits the error event, it's no longer attempting login. You can consider the error event to indicate a fatal error that has resulted in steam-user ceasing all operations unless you call logOn again. Maybe I worded the error event incorrectly, but I have it even after the first error it keeps trying to log in this.account.on('error', (err) => { if (err.eresult === 5) { logger.warn(this.#PREFIX + 'Invalid Password') this.emit('login_r', 'InvalidPassword') } else if (err.eresult === 87 || err.eresult === 84) { logger.warn(this.#PREFIX + 'Rate Limit') this.emit('login_r', 'RateLimit') } else { logger.error(this.#PREFIX + err); } }) Quote
Dr. McKay Posted December 24, 2023 Report Posted December 24, 2023 That's probably a bug in your code. steam-user does not attempt to login again if the error event is emitted. Quote
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.