You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defaults to 120. Valid values are: 120-900 seconds.
[optional]
redirect_to
str
Only applies to Email MagicLink factor. Redirects MagicLink success page to specified URL after 2 seconds. Email must already be configured by the user.
[optional]
custom_message
str
Only applies to SMS factor. A message template that will be sent via SMS. Max length of the message after template items are inserted is 160 characters including the OTP code. SMS must already be configured by the user. The following template variables can be included in the message. - {{otp_code}} - The security code. - {{otp_expiry}} - The number of minutes until the one time code expires.
[optional]
Example
fromonelogin.models.create_device_verification_requestimportCreateDeviceVerificationRequest# TODO update the JSON string belowjson="{}"# create an instance of CreateDeviceVerificationRequest from a JSON stringcreate_device_verification_request_instance=CreateDeviceVerificationRequest.from_json(json)
# print the JSON string representation of the objectprintCreateDeviceVerificationRequest.to_json()
# convert the object into a dictcreate_device_verification_request_dict=create_device_verification_request_instance.to_dict()
# create an instance of CreateDeviceVerificationRequest from a dictcreate_device_verification_request_form_dict=create_device_verification_request.from_dict(create_device_verification_request_dict)