Jump to content
McKay Development

can't confirm a trade


vshaddix

Recommended Posts

Hello,

 

I would like to know if i am doing something wrong here. I am trying to set up the node-steamcommunity to confirm the trade offers i've send. But it gives no error message whatsoever. I am listening for both events listed in the documentation here https://github.com/DoctorMcKay/node-steamcommunity/wiki/Steam-Confirmation-Polling#startconfirmationcheckerpollinterval-identitysecret but it never goes in any of them. Thank you in advance.

Link to comment
Share on other sites

Its pretty simple 

 

 

community.login({
    "accountName": 'name',
    "password": 'password',
    "twoFactorCode": SteamTotp.generateAuthCode('shared_secret'),
    "captcha": ''
}, function(err, sessionID, cookies, steamguard) {
    community.startConfirmationChecker(10000, "identity_secret");
});

 

EDIT: 

The listeners


community.on('newConfirmation', function (confirmation ) {
    console.log('here');
    console.log('confirmation');
    console.log(confirmation);
});

community.on('confKeyNeeded', function (tag, callback) {
    console.log('here2');
    console.log('tag');
    console.log(tag);
    console.log('callback');
    console.log(callback);
});

I read in the documentation i need the confKeyNeeded to do anything with this, but it never goes in the event. 

Edited by vshaddix
Link to comment
Share on other sites

Thank you for the debugging tip.

 

Now i  got this message : 

 

"
Checking confirmations
 

Can't check confirmations: It looks like your Steam Guard Mobile Authenticator is providing incorrect Steam Guard codes. This could be caused by an inaccurate clock or bad timezone settings on your device. If your time settings are correct, it could be that a different device has been set up to provide the Steam Guard codes for your account, which means the authenticator on this device is no longer valid.
"
 
What should i do now ? Re-enable my authenticator ?
 
EDIT:

I removed the identity_secret from the function `startConfirmationsChecker` and in the event `confKeyNeeded` I put the example from the documentations.
 
var time = Math.floor(Date.now() / 1000);
var keyNeeded = SteamTotp.getConfirmationKey("identity_secret", time, tag);
callback(null, timekeyNeeded);
Edited by vshaddix
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...