TwilioController

TwilioController

Controller for twilio.

Constructor

new TwilioController()

Source:

Methods

canVerify(phoneNumber) → {Promise.<any>}

Check if a phone number can be used to verify

Source:
Parameters:
Name Type Description
phoneNumber

The phone number to send the code to (Without Country Code & no spaces/special characters)

Returns:
Type:
Promise.<any>

getCode(phoneNumber, countryCode) → {Promise.<any>}

Get verification code sent to a phone

Source:
Parameters:
Name Type Description
phoneNumber

The phone number to send the code to (Without Country Code & no spaces/special characters)

countryCode

The country code of the phone number (Ex: +1)

Returns:
Type:
Promise.<any>

Get HttpLink appended with append

Source:
Parameters:
Name Type Default Description
append string ""
Returns:
Type:
HttpLink