Jump to content
McKay Development

haveaniceday

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by haveaniceday

  1. function getSteamTimeOffset() {
      return new Promise((resolve, reject) => {
        SteamTotp.getTimeOffset((err, offset, latency) => {
          if (err) {
            reject(err); 
          } else {
            resolve(offset);
          }
        });
      });
    }
    async function doConfirmations(community) {
      let identitySecret = process.env.IDENTITY_SECRET;
    
      let confs = await new Promise(async (resolve, reject) => {
        let offset = await getSteamTimeOffset();
        console.log(offset);
        let time = SteamTotp.time(offset);
        let key = SteamTotp.getConfirmationKey(identitySecret, time, "conf");
        community.getConfirmations(time, key, (err, confs) => {
          if (err) {
            return reject(err);
          }
    
          resolve(confs);
        });
      });

    I added steamTimeOffset and I still get the same error. This probably means the identity secret is wrong?

  2. Hi, I almost copy pasted the file from node  steam-community, to confirm all confirmations on steam.

    let identitySecret = process.env.IDENTITY_SECRET;
    
      let confs = await new Promise((resolve, reject) => {
        let time = SteamTotp.time();
        let key = SteamTotp.getConfirmationKey(identitySecret, time, "conf");
        community.getConfirmations(time, key, (err, confs) => {
          if (err) {
            return reject(err);
          }
    
          resolve(confs);
        });
      });

    But I get this error :

    Quote

                            callback(new Error(body.message || body.detail || 'Failed to get confirmation list'));
                                     ^

    Error: Invalid authenticator

    My main concern is that my identity secret isnt right:( If that is the case is there any chance of getting it, without re-enabling steamGuard. I have all the other codes from the enableTwoFactor function.

  3. Is there an easy way of getting the skin name from the returned item object? I am connected to csgo gc.

    Received a new item: {
      attribute: [
        { def_index: 6, value: null, value_bytes: <Buffer 00 40 42 44> },
        { def_index: 7, value: null, value_bytes: <Buffer 91 e6 b6 43> },
        { def_index: 8, value: null, value_bytes: <Buffer bb 9a 5c 3d> }
      ],
      equipped_state: [],
      id: '31314802955',
      account_id: 1173725743,
      inventory: 3221225482,
      def_index: 36,
      quantity: 1,
      level: 1,
      quality: 4,
      flags: 0,
      origin: 24,
      custom_name: null,
      custom_desc: null,
      interior_item: null,
      in_use: false,
      style: null,
      original_id: null,
      rarity: 1,
      position: 0,
      paint_index: 777,
      paint_seed: 365,
      paint_wear: 0.053858499974012375
    }

     

×
×
  • Create New...