OTP for verification

Developers help me to verify customer phone number by generating OTP.

Hi Ashokkumar,

The hardest part about generating a phone number verification will be sending the SMS by code.
Do a web search for ‘send sms api’ and see what service best fits your needs.
You will probably have to use fetch in order to communicate with the third party service.

To complete the process, you will also need to generate a random number for verification, store it in a collection and verify it once the user inputs the number.

You can search the forum for code that generates random numbers.

Good luck!

1 Like