Jump to content
McKay Development

Cannot login with steamcommunity node?


Jartsu

Recommended Posts

Hey,


I'm trying to login to steam, but I keep getting an error "Error: SteamGuardMobile". My time is right, shared secret is right as well, What could be wrong?



SteamTotp.getTimeOffset(function(err, offset, latency) {
account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset);
account.auth = false;
logger.debug(account);
community.login(account, login);
});

Link to comment
Share on other sites

There are only three ways that a login can fail with that reason:

  1. Time is wrong
  2. Secret is wrong
  3. Code has already been used

As you've already eliminated the time being incorrect by getting the time offset (you need to be checking the error though), then you must be using the wrong secret, or you must be reusing the auth code.

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