Node.js

Test the Backend

First of all, start the backend. From the backend/ folder, run:

node app.js

By default, the server listens on port 3000 (unless you set PORT in your .env).

You can quickly confirm it’s running:

curl http://localhost:3000/health

Expected output:

Start a Verification Request

Open a new terminal and send a request to your backend:

curl -X POST http://localhost:3000/verification \ -H "Content-Type: application/json" \ -d '{"phone":"+34600000000"}'

If everything is configured correctly, you should get a 200 OK response containing:

  • request_id (always)
  • check_url (only when Silent Auth is available for the workflow/network)

Example of response:

About Testing check_url with cURL

You can technically call the check_url with curl:

curl -L "YOUR_CHECK_URL_HERE"

but this usually won’t complete Silent Authentication successfully from a laptop. Silent Authentication relies on the request coming from the user’s mobile network context (in fact, it requires the phone to be on mobile data). A desktop cURL call is coming from your home/office ISP, not the phone’s SIM/network.

The real end-to-end Silent Auth test happens from the Android app (or a real device making the request over mobile data).