Parameters

data class Parameters(    val email: String,     val expirationMinutes: UInt = DEFAULT_OTP_EXPIRATION_TIME_MINUTES,     val loginTemplateId: String? = null,     val signupTemplateId: String? = null)

Data class used for wrapping parameters used with Email OTP

Constructors

Link copied to clipboard
fun Parameters(    email: String,     expirationMinutes: UInt = DEFAULT_OTP_EXPIRATION_TIME_MINUTES,     loginTemplateId: String? = null,     signupTemplateId: String? = null)

Properties

Link copied to clipboard
val email: String

the address the OTP code would be sent to via Email

Link copied to clipboard
val expirationMinutes: UInt

indicates how long the OTP should last before it expires

Link copied to clipboard
val loginTemplateId: String? = null

Use a custom template for login emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Magic links - Login.

Link copied to clipboard
val signupTemplateId: String? = null

Use a custom template for sign-up emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Magic links - Sign-up.