0.0.5 • Published 2 years ago

ok2fa v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Two Factor Authentication

npm NPM downloads

CLI Command for Two Factor Authentication.

Installation

clone this repository

$ npm install ok2fa -g

Usage

Usage: 2fa [options] [command]

Options:
  -v, --version   output the current version
  -h, --help      display help for command

Commands:
  add             Add platform 2fa key
  generate        Generate 2fa code.
  list            List all platform
  remove          Remove platform ga key
  help [command]  display help for command

Example call:
  $ 2fa --help

Add Platform

$ 2fa add
? Please input platform name: test1
? Please input 2fa authentication key: **********
 SUCCESS  Add platform test1 success.
✨  Done in 33.32s.

Remove Platform

$ 2fa remove
? Please select platform name to remove: test1
 SUCCESS  Remove platform 'test1' success.

Generate

Help:

$ 2fa generate
? Please select platform name: npm
Generate 2fa code for npm:
 928576
Auto copy 2fa code to clipboard success.

Also you can omit generate word, like:

$ 2fa

License

MIT License