The requirements for this project are:
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 dashboardVONAGE_API_SECRET
: Your Vonage API key found on the developer dashboardVONAGE_BRAND_NAME
: A name for your application which will appear on the home page and also in thefrom
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 thetru.json
file in the newly created tru.ID project.TRU_ID_SECRET
: The client secret found in thetru.json
file in the newly created tru.ID project.
In order to restore dependencies run:
npm install
In order to start the project run:
npm start
Distributed under the MIT License. See LICENSE