Skip to content

Vonage-Community/blog-number-verification-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number Verification API demo

Overview

This project integrates Number Verification API to implement user authentication using the mobile phone connected to mobile network.

Prerequisites

  • A Vonage Developer Account.
  • Node.js and npm installed.
  • A valid phone number in one of the supported countries (Spain/Germany)

Getting Started

  1. Clone the repository and change directories

  2. Install the required packages:

    npm install
  3. Copy the .env.example file to .env file in the project root and include the following environment variables (all variables are mandatory):

    cp .env.example .env
     VONAGE_APPLICATION_ID=your_application_id
    
     JWT=your_jwt_token
    
     REDIRECT_URI=https://your-server.com/callback
  4. Run the application:

    node app.js
  5. Open the page from the mobile phone that you want to verify. Important The phone must be connected to the mobile network. If you are connected to any WiFi network the authentication won't work.

About

The repository contains a demo using Number Verification API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published