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
abstract fun loginOrCreateCompletable(parameters: OTP.EmailOTP.Parameters): CompletableFuture<LoginOrCreateOTPResponse>
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'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
abstract fun sendCompletable(parameters: OTP.EmailOTP.Parameters): CompletableFuture<OTPSendResponse>
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.