Skip to content

A working example to verify a person's Phone number and SIM card are a match using Vonage's Verify API (Including Silent Authentication)

License

Notifications You must be signed in to change notification settings

silentauth/verify-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vonage Verify Demo

Server Setup

You'll need a Vonage developer account, with an application ID and the private.key file for this application. Run the three commands below and populate the newly created .env file with your Vonage credentials. The workflow is configured to SMS -> TTS. However this can be defined however you wish in the ./Server/src/utils/vonage.js createRequest method.

cd Server
npm install
cp .env.example .env
npx sequelize-cli db:migrate  # This example uses SQLite3. This command will create the sqlite3 database file, and run any migrations.

Run the server with the following command:

npm run dev # This will output an ngrok URL. Copy this for the next section.

Mobile App Setup

Install all third party libraries, copy the .env.example file to .env and update the value of SERVER_BASE_URL in .env to be the value of your ngrok URL.

cd MobileApp
npm install
cd ios && pod install # For ios devices.
cp .env.example .env

Run on Android

npm run android

Run on iPhone

npm run ios

About

A working example to verify a person's Phone number and SIM card are a match using Vonage's Verify API (Including Silent Authentication)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published