@anzerr/totp.util
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

Totp util base on rfc6238 for two step authentication

Install

npm install --save git+https://git@github.com/anzerr/totp.util.git
npm install --save @anzerr/totp.util

Example

Both examples works with google authentication. Online example or a console version can be found in test/example.js

const {Totp} = require('totp.util');

let t = new Totp('12345678901234567890');
console.log(t.get());

let gen = Totp.generate();
console.log(gen.key.toString(), gen.get());

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.11
    1
    • latest

Version History

Package Sidebar

Install

npm i @anzerr/totp.util

Weekly Downloads

2

Version

1.0.11

License

MIT

Unpacked Size

8.24 kB

Total Files

10

Last publish

Collaborators

  • anzerr