vshaddix Posted April 16, 2016 Report Posted April 16, 2016 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. Quote
vshaddix Posted April 16, 2016 Author Report Posted April 16, 2016 (edited) 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 listenerscommunity.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 April 16, 2016 by vshaddix Quote
Dr. McKay Posted April 17, 2016 Report Posted April 17, 2016 If you provide your identitySecret, then no events will be emitted and all confirmations will always be accepted. If you want some debug logging, then add: community.on('debug', console.log); Quote
vshaddix Posted April 17, 2016 Author Report Posted April 17, 2016 (edited) 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, time, keyNeeded); Edited April 17, 2016 by vshaddix Quote
vshaddix Posted April 18, 2016 Author Report Posted April 18, 2016 I really hope someone gives me a hint on this. Quote
Dr. McKay Posted April 18, 2016 Report Posted April 18, 2016 Either your identity_secret is wrong or your clock is wrong. Quote
vshaddix Posted April 18, 2016 Author Report Posted April 18, 2016 You were correct, I was using a different identity_secret, sorry for the useless post. Thank you. Quote
Recommended Posts
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.