Skip to main content
All WhatsApp OTP SDK methods require you to initiate an action first. Check out our guide on WhatsApp authentication for more details.

Challenge

Start a WhatsApp OTP challenge by sending the user a WhatsApp message containing an OTP code.

Response

response
AuthsignalResponse<void>

Verify

Finish re-authenticating a WhatsApp OTP authenticator by verifying the code submitted by the user.

Parameters

code
string
The OTP code inputted by the user.

Response

response
AuthsignalResponse<VerifyResponse>
data
VerifyResponse