After a successful sign up, the first check needed is to verify a mobile phone number. This is mostly for compliance and to ensure the consumer will be able to use security features, such as Two Factor and Account Recovery.
Start by sending the verification code to the mobile phone using SMS:
// TODO: Code snippet // POST /consumers/:userId/phones/:phoneId/send-token
The response of the request will include the time this code expires, as well as a cool down period in which you won't be able to send another code to the same number.
In your UI, when the user input the code it received, you can verify the phone using the method below:
// TODO: Code snippet // POST /consumers/:userId/phones/:phoneId/verify
In case of time expiration, you may request a new code repeating the same steps shown above.