ok2fa

CLI Command for Two Factor Authentication

  • ok2fa

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ok2fa
0.0.52 years ago2 years agoMinified + gzip package size for ok2fa in KB

Readme

Two Factor Authentication
npm NPM downloads
CLI Command for Two Factor Authentication.
- Demo - Installation - Usage
- [Add Platform](#add-platform)
- [Remove Platform](#remove-platform)
- [Generate](#generate)
- License

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