Jump to content
McKay Development

Recommended Posts

Posted

HI, i trying to write a bot manager for trading, i try to get my secrect id and shared code by using this code:

var SteamCommunity = require('steamcommunity');
var community = new SteamCommunity();

community.login({
  "accountName": "MyAccountName",
  "password": "MyPassword",
  "twoFactorCode": "6 char code that i receive from steam guard mobile"
}, function (err, sessionId, cookies, steamGuard, token) {
  if (err) {
    console.log(err);
  }
  else {
        community.loggedIn(function (err, result) {
      if (err) {
        console.log("loggedIn error: ", err);
      }
      else {
        community.enableTwoFactor(function (err, response) {
          if (err) {
            console.log("twoFactor Error: ", err);
          } else {
            console.log("response", response);
            community.finalizeTwoFactor(response.shared_secret, test, function(err, result){
              if("finalizeTwoFactor Error: ", err) {

               } else {
                 console.log("finalizeTwoFactor Success: ", result);
               }
             });
          }
        });
      }
    });
  }
});

I enabled my bot account with steam guard mobile, and verify the number, but when i try to start that code i get this error:

 

twoFactor Error:  { [Error: Error 29] eresult: 29 }

 

what did i miss here? i try to search in this forum and google but i can't find my answer.

 

Posted

Thanks, for you're reply, i resolve my problem, i revoke steam guard from my mobile first, then using the sample code for enabling 2fa from steamcommunity github, and that worked for me.

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