WhatsAppOtpClient

WhatsApp OTP methods.

Functions

Link copied to clipboard
abstract suspend fun loginOrCreate(request: IOTPsWhatsAppLoginOrCreateParameters): OTPsWhatsAppLoginOrCreateResponse

Sends a one-time passcode via WhatsApp to the provided phone number, logging in an existing user or creating a new one. Calls the POST /sdk/v1/otps/whatsapp/login_or_create endpoint.

Link copied to clipboard
abstract suspend fun send(request: IOTPsWhatsAppSendSecondaryParameters): OTPsWhatsAppSendSecondaryResponse

Sends a one-time passcode via WhatsApp to an existing user's phone number. Routes to POST /sdk/v1/otps/whatsapp/send/primary if no session is active, or POST /sdk/v1/otps/whatsapp/send/secondary if a session exists (to add an additional auth factor).