1. Send the OTP
Use your API Key to dispatch a verification code to your user’s WhatsApp number.Expiry: The dispatched OTP code is valid for 10 minutes.
2. Verify the OTP
When the user enters the code, send it to our verification endpoint. If successful, you will receive an Identity Token.3. Validate the Identity Token (Critical)
To prevent spoofing and ensure the verification happened on our servers, you must verify theidentity_token on your backend.
Think of Step 2 as the Box Office. They give you a Ticket (the JWT). But you still have to walk to the Usher (your backend logic) and show them the Ticket to get into your seat.
Node.js
By following all three steps, you ensure that your login flow is cryptographically secure and tamper-proof.