Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    1. Verify the validity of access token
    2. Check user scopes in order to perform this action
      1. In case error - generate 401 response

Verify code

    1. Search active code for phone number
    2. Check code expiration period
    3. Compare codes

Matched

    1. Deactivate code

    2. Add phone number to verified_phones

Not matched

    1. Deactivate code

    2. Invoke Send verification code
    3. Return errorcall Complete OTP Verification method