Specification
This method is used when you need to re-send SMS to a person
Authorize
Verify the validity of access token
Check user scope authentication_method_request:write in order to perform this action
Validate
Validate auth method. Person must has auth_method.type = OTP or THIRD_PERSON( where third_person.auth_method.type = OTP)
Check that authentication_method_request.status = NEW
Generate verification code
Invoke Initialize OTP to generate one time password and send it to client number.
cURL example
curl -X POST \ http://localhost:4000/verifications \ -H 'content-type: application/json' \ -d '{ "phone_number": "+380958697084" }' |