EmailOTP

interface EmailOTP

Provides all possible ways to call Email OTP endpoints

Types

Link copied to clipboard
data class Parameters @JvmOverloads constructor(val email: String, val expirationMinutes: Int = DEFAULT_OTP_EXPIRATION_TIME_MINUTES, val loginTemplateId: String? = null, val signupTemplateId: String? = null) : Parcelable

Data class used for wrapping parameters used with Email OTP

Functions

Link copied to clipboard
abstract fun loginOrCreate(parameters: OTP.EmailOTP.Parameters, callback: (LoginOrCreateOTPResponse) -> Unit)

Send a one-time passcode (OTP) to a user using their email address. If the email address is not associated with a user already, a user will be created.

Link copied to clipboard

Send a one-time passcode (OTP) to a user using their email address. If the email address is not associated with a user already, a user will be created.

Link copied to clipboard
abstract suspend fun send(parameters: OTP.EmailOTP.Parameters): OTPSendResponse
abstract fun send(parameters: OTP.EmailOTP.Parameters, callback: (OTPSendResponse) -> Unit)

Send a one-time passcode (OTP) to a user's email address. If you'd like to create a user and send them a passcode with one request, use our loginOrCreate method.

Link copied to clipboard

Send a one-time passcode (OTP) to a user's email address. If you'd like to create a user and send them a passcode with one request, use our loginOrCreate method.