OTP (Mobile Number Verification)
We implement the
OTP feature on PickBazar
v2.2.0. So if you want to use
PickBazar, then make sure your PickBazar is
v2.2.0 or later.
With the OTP feature, you can do,
- Login with Mobile Number- OTP verification for updating Mobile Number in profile update section- OTP verification during checkout process in customer contact section
As of today, we implement two service providers for OTP. One is
Twilio, and another is
If you want to use
Twilio as your OTP service provider, then follow this procedure,
- Create an account at Twilio
- After that, go to the
Twilio Console Paneland copy the
AUTH TOKENkey and add this key to your
After that, go to the
Verifyoption from the
verify dashboard,create a service.
Add add that service key to
api/.env -> TWILIO_VERIFICATION_SID
With that, your configuration is complete.
Use only one service provider for OTP service, so use this
MessageBirdconfiguration only if you want to use
MessageBird, follow this procedure,
Create an account from MessageBird
After creating the account, go to the
API Getting Startedand follow all the procedures step by step.
After completing the profile, copy the
MessageBirdand paste it to
MessageBird is appropriately configured for the OTP Service.
After configuration, you will be able to use
mobile number as a login provider. When users select the
Join button, they'll get an option
Login with mobile to use a mobile number as a login provider.
Similarly, when users go to the checkout page, they'll get a form to verify their mobile number.
For the front end, you don't have to do anything. When a user goes to the
checkout page, they get a phone number box to add their number and verify it.
Users also can change the number from their profile.