Node.js

Testing the Backend

Start the server:

Open a new terminal and use cURL to send a request to the /verification endpoint. The request must include the phone number in the body:

The request should return a 200 Ok response containing the request_id and the check_url. At this point we could use cURL again to send the check_url:

The backend is now ready to be called from the mobile app. Next, we’ll build the Android client to complete the full 2FA flow.