Coder Social home page Coder Social logo

tru-id / 2fa-sim-swap-detection-vonage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nexmo-community/node-stepup-auth

0.0 1.0 2.0 95 KB

SIM Swap Detection to your Web App's Vonage Verify 2FA Login Flow using tru.ID SIMCheck

License: MIT License

CSS 21.77% JavaScript 59.03% Shell 0.99% Pug 18.21%
2fa verify simswap sim-swap-detection

2fa-sim-swap-detection-vonage's Introduction

Adding SIM Swap Detection to your Web App's Vonage Verify 2FA Login Flow using tru.ID SIMCheck

Requirements

The requirements for this project are:

Getting Started

This project uses Vonage's node-stepup-auth as the base in the starter-files branch.

Clone the starter-files branch via:

git clone -b starter-files --single-branch https://github.com/tru-ID/2fa-sim-swap-detection-vonage.git

If you're only interested in the finished code in main then run:

git clone -b main https://github.com/tru-ID/2fa-sim-swap-detection-vonage.git

Next you need to configure Vonage using your account credentials.

Copy the values of example.env into a .env file via:

cd 2fa-sim-swap-detection-vonage && cp example.env .env

Open the .env file and configure the following values:

  • VONAGE_API_KEY: Your Vonage API key found on the developer dashboard
  • VONAGE_API_SECRET: Your Vonage API key found on the developer dashboard
  • VONAGE_BRAND_NAME: A name for your application which will appear on the home page and also in the from field of any SMS sent via the Verify API. Up to 11 alphanumeric characters

Next, Create a tru.ID Account

Install the tru.ID CLI via:

npm i -g @tru_id/cli

Input your tru.ID credentials which can be found within the tru.ID console

Create a new tru.ID project via:

tru projects:create sms-2fa-vonage

configure the following values in your .env:

  • TRU_ID_CLIENT: The client ID found in the tru.json file in the newly created tru.ID project.
  • TRU_ID_SECRET: The client secret found in the tru.json file in the newly created tru.ID project.

Restoring Dependencies

In order to restore dependencies run:

npm install

Starting Project

In order to start the project run:

npm start

References

Meta

Distributed under the MIT License. See LICENSE

tru.ID

2fa-sim-swap-detection-vonage's People

Contributors

glamboyosa avatar leggetter avatar

Watchers

 avatar

Forkers

vrootebal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.