EmailOtpClient
interface EmailOtpClient
Email OTP methods.
Functions
Link copied to clipboard
abstract suspend fun loginOrCreate(request: IOTPsEmailLoginOrCreateParameters): OTPsEmailLoginOrCreateResponse
Sends a one-time passcode via email to the provided address, logging in an existing user or creating a new one. Calls the POST /sdk/v1/otps/email/login_or_create endpoint.
Link copied to clipboard
abstract suspend fun send(request: IOTPsEmailSendSecondaryParameters): OTPsEmailSendSecondaryResponse
Sends a one-time passcode via email to an existing user's email address. Routes to POST /sdk/v1/otps/email/send/primary if no session is active, or POST /sdk/v1/otps/email/send/secondary if a session exists (to add an additional auth factor).