Versions Compared

Key

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

...

      https://docs.msg91.com/collection/msg91-api-integration/5/send-otp-message/TZ6HN0YI


ProsCons
  1. No need to manage OTP generation, resend and verification part
  2. Quick Initial setup
  1. Improve cost impact.
  2. to implement some custom business logic , will take more time,
  3. Phone number will be exposed to third party

Table structure to store OTP:

...

  •    Sending SMS or Email are Async call , if format is valid it will return success , but later it will try to send it that might got failure.
  •     As SMS gate way will have api to check delivery reports : https://docs.msg91.com/collection/msg91-api-integration/5/delivery-report/T19VM23R
    • possibility to attach a scheduler to get the status based on messageId and update the status in DB
  •     In case of email how can we confirm delivery reports?
  •    What will happen if delivery reports indicates failure ? (cases like blocked or invalid numbers)
  •    What should be frequency to get OTP delivery reports?

...