Node.js

Set up The Testing Environment

At this point, the project is fully wired end to end:

  • An Android app that manages UI state and user interaction
  • A Node.js backend that owns the verification flow
  • Vonage Verify v2 orchestrating Silent Authentication and SMS fallback
  • The mobile carrier network providing the trust signal for Silent Authentication

Prerequisites

For the Backend:

  • Node.js backend running locally (node app.js)
  • Backend reachable from the Android device. Use ngrok or any other similar tool, to create a public URL pointing to your local backend. Your backend should be listening for incoming petitions on http://<your-public-ip>:3000
  • Valid Vonage Application credentials in .env

For the Android app:

  • Built and installed successfully
  • Internet permission enabled
  • Correct backend URL configured via local.properties
  • A real device running your Android application.

High-level verification flow

The following diagram shows the full verification flow at a high level, from user action to final verification result:

Verify and Silent Auth Tutorial