alnacle / number-verification-demo

Number Verification API demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Number Verification API demo


Languages

Language:JavaScript 40.1%Language:CSS 29.0%Language:EJS 20.1%Language:HTML 10.8%