Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.
/ mfa-nodejs Public archive

Multi Factor Authentication (MFA) for NodeJS <3

Notifications You must be signed in to change notification settings

willaug/mfa-nodejs

Repository files navigation

Npm ci GraphQL LinkedIn



logo

Multi Factor Authentication

A simple example using the one-time password (OTP) method.




About

This project was created to learning and is an example to generate a 2fa method by verification code. Basically, the idea is return a qr-code and code to user add in your auth app and check generated code.

Features

  • Generate a seed key and qr-code;
  • Add seed-key in account row;
  • Check verification code.

(back to top)

Getting Started

Prerequisites

To run it is necessary to have NodeJS installed in your system, prefer version 16. There's a nvm file and you can use it to install or update the node version.

Installation

Clone the repo

  git clone https://github.com/willaug/mfa-nodejs.git

Install dependencies

  cd mfa-nodejs && npm i

Usage

Tests

  npm t # recommended before to run

Run in production mode

  npm start # playground disabled

Run in development mode

  npm run dev

Access the API

  http://localhost:4000

Access the database

  http://localhost:3000

(back to top)

Build with

(back to top)

Contact

You can contact me by:

(back to top)

Releases

No releases published

Packages

No packages published