@jovijovi/two-fa.js
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

Two-FA.js

npm GitHub Actions Coverage

A two-factor authentication(2FA) based on HOTP & TOTP written in TypeScript.

Philosophy

💋 KISS. Keep it small and simple.

Features

  • Based on HOTP/TOTP algorithm
  • Get code by raw key
  • Get code by encoded key
  • Encode/Decode key
  • Gen random key

Development Environment

  • typescript 4.7.4
  • node v16.15.1
  • ts-node v10.8.2
  • yarn v1.22.19

Install

npm install @jovijovi/two-fa.js

or

yarn add @jovijovi/two-fa.js

Usage

import {twofa} from '@jovijovi/two-fa.js';

const code = twofa.GetCode(key);
console.debug("Code=", code);

Roadmap

  • Documents
  • QR

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @jovijovi/two-fa.js

Weekly Downloads

31

Version

0.2.5

License

MIT

Unpacked Size

17.2 kB

Total Files

21

Last publish

Collaborators

  • jovijovi