ruimarinho / authy-client

A complete Authy client with support for TOTP, OneTouch, Phone Verification and Phone Intelligence APIs
122 stars 27 forks source link

Reference to all optional arguments #51

Closed eorroe closed 5 years ago

eorroe commented 6 years ago

Sorry but I can't seem to find where are the options I can pass to startPhoneVerification I want to change the code_length

A reference to where I can easily know what options to pass for each function would be of great use.

I'm using https://www.twilio.com/docs/verify/api/verification but the parameters don't match.

For example this library uses phone instead of phone_number so any reference to the right way to pass options would be great, the README doesn't show all options that can be passed

davvilla commented 6 years ago

From looking at https://github.com/ruimarinho/authy-client/blob/master/src/client.js it doesn't seem like it's an option to pass in at the moment.

As a side note tor future readers, the locale parameter needs to be passed as a separate object:

await this.authyClient.startPhoneVerification({
        countryCode,
        phone,
        via: enums.verificationVia.SMS
      }, {
        locale: enums.locale.SPANISH
      })
var commented 5 years ago

I gave a pull request for code length in #54

ruimarinho commented 5 years ago

This is now supported @eorroe.