Jump to content
McKay Development

I got error for "mobileconfirm"


ggforces

Recommended Posts

const SteamCommunity = require('steamcommunity');
const SteamTOTP = require('steam-totp');
const community = new SteamCommunity();
const identitySecret = "identity key"; // Steam Guard Mobile Authenticator uygulamasında görüntülenen 32 karakterli identity_secret anahtarı
 
community.login({
  "accountName": "id",
  "password": "pw",
  "twoFactorCode": SteamTOTP.generateAuthCode("shared secret key")
}, (err, sessionID, cookies) => {
  if (err) {
    console.log(err);
  } else {
    console.log("Logged in");
   
    community.getConfirmations((err, confirmations) => {
      if (err) {
        console.log(err);
      } else {
        const confirmationIDs = confirmations.map(confirmation => confirmation.id);
        const confirmationKeys = confirmations.map(confirmation => confirmation.key);
       
        community.confirmAllConfirmations(sessionID, identitySecret, confirmationIDs, confirmationKeys, (err) => {
          if (err) {
            console.log(err);
          } else {
            console.log("All confirmations completed");
          }
        });
      }
    });
  }
});


I got "Unknown Error" but why? idk, can u help me?
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...