Node.js
Backend Prerequisites
In this first part, you’ll build a small Node.js backend that starts and completes a Vonage Verify API flow.
This backend will support:
- Silent Authentication: verification happens through the mobile network when possible (no code entry).
- SMS verification: the user receives a one-time code by SMS and types it in. Verify will fall back to SMS if Silent Authentication is not available or fails.
Important: Your Vonage credentials (JWT/private key) must live only on the backend. The mobile app will call your backend, and your backend will call Vonage.
Before You Start
Make sure you have:
Getting Started with Silent Authentication
Silent Authentication takes quite a bit to understand. This tutorial shows you how to build an integration from scratch with Nodejs and Kotlin
Available on:
Steps
1
Introduction2
Backend Prerequisites3
Set Up the Environment4
Set Up Your Vonage Credentials5
Add the Vonage Verify API to the Backend6
Test the Backend7
Mobile App Prerequisites8
Set Up the Environment9
Create a Basic Android Application10
Connect with the Backend11
Use the Vonage Client SDK12
Set Up The Testing Environment13
Test the Implementation