Jump to content
McKay Development

Wrong identity secret?


haveaniceday

Recommended Posts

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.

Link to comment
Share on other sites

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?

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