Parameters

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

Parameters

email

the address the OTP code would be sent to via Email

expirationMinutes

indicates how long the OTP should last before it expires

loginTemplateId

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.

signupTemplateId

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.

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
Link copied to clipboard
val expirationMinutes: UInt
Link copied to clipboard
val loginTemplateId: String? = null
Link copied to clipboard
val signupTemplateId: String? = null