marcon Posted October 3, 2018 Report Posted October 3, 2018 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. Quote
Dr. McKay Posted October 4, 2018 Report Posted October 4, 2018 Use shared_secret, not secret_1. 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.