@askilada/2fa
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

2FA

Install

yarn add @askilada/2fa

or

npm install --save @askilada/2fa

Example

Typescript

import {HOTP, TOTP} from '@askilada/2fa'

const secret = 'SFLW5SMY2FECNYHBRUUMYK5BDY'
const timeSteps = 30

const code = TOTP.generateCode(secret, timeSteps)

console.log(code) // Some 6-digits number

Readme

Keywords

none

Package Sidebar

Install

npm i @askilada/2fa

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

8.24 kB

Total Files

13

Last publish

Collaborators

  • lex-lower