OtpClient

interface OtpClient

OTP (one-time passcode) authentication via SMS, email, or WhatsApp.

Properties

Link copied to clipboard
abstract val email: EmailOtpClient

Email OTP methods.

Link copied to clipboard
abstract val sms: SmsOtpClient

SMS OTP methods.

Link copied to clipboard

WhatsApp OTP methods.

Functions

Link copied to clipboard
abstract suspend fun authenticate(request: IOTPsAuthenticateParameters): OTPsAuthenticateResponse

Authenticates a one-time passcode entered by the user, establishing a session. Calls the POST /sdk/v1/otps/authenticate endpoint.