Jump to content
McKay Development

Wrong codes being generated by node-steam-totp module


marcon

Recommended Posts

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.

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