steamguard-totp
v1.0.2
Published
Promise-based JS implementation of Steam's mobile two factor authentication
Downloads
11
Readme
steamguard-totp
Promise-based JS implementation of Steam's mobile two factor authentication
Installation
yarn add steamguard-totp
Usage
const generateCode = require('steamguard-totp');
const shared_secret = '8cr0T+zCLiaSdo1E+Alp7nzAPno=';
// async/await style
(async () => {
const code = await generateCode(shared_secret);
console.log(code);
})();
// promise style
generateCode(shared_secret)
.then((code) => console.log(code));