1.0.2 • Published 6 years ago

steamguard-totp v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

steamguard-totp

Promise-based JS implementation of Steam's mobile two factor authentication

Build Status

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));
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago