Hello. I have trouble with node-steam-totp module to work properly for me. The code I use:
var SteamTotp = require('steam-totp');
var secret = 'secret_stuff';
setInterval(function () {
console.log('Code #1 = ' + SteamTotp.generateAuthCode(secret));
SteamTotp.generateAuthCode(secret, function (error, code, offset, latency) {
console.log('Code #2 = ' + code);
});
}, 5000);
I'm using secret_1 value from WinAuth. Codes are generated perfectly fine by WinAuth but both codes generated by code above are invalid. The secret I'm using is correct (I removed it from code snippet for security reasons). Do i miss something or is there something wrong with the module itself? Both node js code and WinAuth are running on the same machine and I'm using latest version of node-steam-totp. I'm happy to provide additional info if needed. Thanks in advance for any help.