...
- Verify the validity of access token
- Check user scopes in order to perform this action
- In case error - generate 401 response
Verify code
- Search active code for phone number
- Check code expiration period
- Compare codes
Matched
Deactivate code
- Add phone number to verified_phones
Not matched
Deactivate code
- Invoke Send verification code
- Return errorcall Complete OTP Verification method