This project integrates Number Verification API to implement user authentication using the mobile phone connected to mobile network.
- A Vonage Developer Account.
- Node.js and npm installed.
- A valid phone number in one of the supported countries (Spain/Germany)
-
Clone the repository and change directories
-
Install the required packages:
npm install
-
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
-
Run the application:
node app.js
-
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.