Parameters

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

Data class used for wrapping parameters used with Email OTP

Constructors

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

Properties

Link copied to clipboard

the address the OTP code would be sent to via Email

Link copied to clipboard

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

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.