SmsOtpClient
interface SmsOtpClient
SMS OTP methods.
Functions
Link copied to clipboard
abstract suspend fun loginOrCreate(request: IOTPsSMSLoginOrCreateParameters): OTPsSMSLoginOrCreateResponse
Sends a one-time passcode via SMS to the provided phone number, logging in an existing user or creating a new one. Calls the POST /sdk/v1/otps/sms/login_or_create endpoint.
Link copied to clipboard
Sends a one-time passcode via SMS to an existing user's phone number. Routes to POST /sdk/v1/otps/sms/send/primary if no session is active, or POST /sdk/v1/otps/sms/send/secondary if a session exists (to add an additional auth factor).