Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 937 Bytes

VerifyCodeRequest.md

File metadata and controls

24 lines (18 loc) · 937 Bytes

Bandwidth::VerifyCodeRequest

Properties

Name Type Description Notes
to String The phone number to send the mfa code to.
scope String An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to "2FA". [optional]
expiration_time_in_minutes Float The time period, in minutes, to validate the mfa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively.
code String The generated mfa code to check if valid.

Example

require 'bandwidth-sdk'

instance = Bandwidth::VerifyCodeRequest.new(
  to: +19195551234,
  scope: 2FA,
  expiration_time_in_minutes: 3,
  code: 123456
)