Jump to content
McKay Development

ggforces

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by ggforces

  1. 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?
×
×
  • Create New...