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.
await authsignal.whatsapp.challenge()

Response

response
AuthsignalResponse<void>

Verify

Finish re-authenticating a WhatsApp OTP authenticator by verifying the code submitted by the user.
let response = await authsignal.whatsapp.verify(code: "123456")

let isVerified = response.isVerified

Parameters

code
string
The OTP code inputted by the user.

Response

response
AuthsignalResponse<VerifyResponse>
data
VerifyResponse