Skip to content

csamatas/Node-2FA-Tutorial

 
 

Repository files navigation

Node-2FA-Tutorial

code style: prettier JavaScript Style Guide License: MIT Build Status Coverage Status

This project serves as a guide to help you build a 2FA (Two-Factor Authentication) application with FreeClimb. View this tutorial here.
Specifically, the project will:

  • Get a phone number from the user
  • Send a verification code to the user's phone
  • Get the verification code from the user
  • Expire the verification code after a set amount of time
  • Verify the code

Setting up your new app within your FreeClimb account

To get started using a FreeClimb account, follow the instructions here.

Setting up the Tutorial

  1. Install the required packages

    yarn install
  2. Configure environment variables within the .env file

    ENV VARIABLE DESCRIPTION
    ACCOUNT_ID Account ID which can be found under API Keys in Dashboard.
    AUTH_TOKEN Authentication token which can be found under API Keys in Dashboard
    FC_PHONE_NUMBER A configured FreeClimb Number that will send verification codes. To learn more, go here.
    PORT Specifies the port on which the app will run (e.g. PORT=3000 means you would direct your browser to http://localhost:3000).

Running the Tutorial

yarn start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 92.8%
  • Handlebars 6.9%
  • Shell 0.3%