DNA Changes
carrier? = identifyClient(token)
if (carrier) {
userid, subscriptionResponse = subscribeByPhone(token, mobilePhoneNumber)
} else
..
const { allowedMethods, smsChallengeId } = sendPinCodeSMS(token, mobilePhoneNumber)
if (allowedMethods includes verifyPinCode)
show pin code form in the UI
collect pin code from user
userid = call verifyPinCode(smsChallengeId, pin code)
subscribe(userid, token)
if (allowedMethods includes subscribeByPhone)
userid, subscriptionResponse = subscribeByPhone(token, mobilePhoneNumber)
# Zlick API
*
* Detect carrier network / use existing identify endpoint
* SMS auth start method needs to send authMethod for carrier
* New method for subscription by carrier proxy
* New method that sends proxy link to SMS
* An HTML rendering page to show on the proxy link
* New method that confirms status of carrier proxy purchase