Jump to content
McKay Development

Recommended Posts

Posted

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.

Posted
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

Posted

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.

Posted
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);
            }
        })

 

image.png

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