OTPOptions

@JsonClass(generateAdapter = true)
data class OTPOptions(val methods: List<OTPMethods> = emptyList(), val expirationMinutes: Int = DEFAULT_OTP_EXPIRATION_TIME_MINUTES.toInt(), val loginTemplateId: String? = null, val signupTemplateId: String? = null) : Parcelable

A data class representing options for configuring the OTP product

Constructors

Link copied to clipboard
constructor(methods: List<OTPMethods> = emptyList(), expirationMinutes: Int = DEFAULT_OTP_EXPIRATION_TIME_MINUTES.toInt(), loginTemplateId: String? = null, signupTemplateId: String? = null)

Properties

Link copied to clipboard

The number of minutes that an OTP code is valid for. Defaults to 10

Link copied to clipboard
val loginTemplateId: String? = null

The ID of an OTP template (defined in the Stytch Dashboard) for login requests

Link copied to clipboard

A list of OTPMethods that you would like to enable

Link copied to clipboard

The ID of an OTP template (defined in the Stytch Dashboard) for signup requests