...
- Verify the validity of access token
- Check user scopes in order to perform this action
- In case error - generate 401 response
...
Initialize verification
...
- Generate verification code using basic random (default) function or time-based algorithm
- Verification code format - digits only ^[1-9][0-9]*$
- Verification code length - configuration parameter (default = 4)
- Verification code expiration period - configuration parameter (default = 15 min)
- Set expiration period using configuration parameter
Deactivate active verification code
- Search active verification code(s) for this phone number
- If found - change status to INACTIVE
Save verification code
...
- call Initialize OTP Verification method
Generate SMS text
- call Man method - templates rendering service.
...