v1InitOtpIntentV2 class
Constructors
v1InitOtpIntentV2 ({required String otpType , required String contact , num ? otpLength , required String appName , v1EmailCustomizationParamsV2 ? emailCustomization , v1SmsCustomizationParams ? smsCustomization , String ? userIdentifier , String ? sendFromEmailAddress , bool ? alphanumeric , String ? sendFromEmailSenderName , String ? expirationSeconds , String ? replyToEmailAddress })
const
v1InitOtpIntentV2.fromJson (Map <String , dynamic > json )
factory
Properties
alphanumeric
→ bool ?
Optional flag to specify if the OTP code should be alphanumeric (Crockford’s Base32). Default = true
final
appName
→ String
The name of the application. This field is required and will be used in email notifications if an email template is not provided.
final
contact
→ String
Email or phone number to send the OTP code to
final
emailCustomization
→ v1EmailCustomizationParamsV2 ?
Optional parameters for customizing emails. If not provided, the default email will be used.
final
expirationSeconds
→ String ?
Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes)
final
hashCode
→ int
The hash code for this object.
no setter inherited
otpLength
→ num ?
Optional length of the OTP code. Default = 9
final
otpType
→ String
Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL
final
replyToEmailAddress
→ String ?
Optional custom email address to use as reply-to
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sendFromEmailAddress
→ String ?
Optional custom email address from which to send the OTP email
final
sendFromEmailSenderName
→ String ?
Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications'
final
smsCustomization
→ v1SmsCustomizationParams ?
Optional parameters for customizing SMS message. If not provided, the default SMS message will be used.
final
userIdentifier
→ String ?
Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address.
final