+ 5
Verify Phone Number
I am trying to verify phone number during a enroll form so I used OTPLess which kinda easy but I feel It take a lot of efforts, Need to scan and then send message to OTPLess on WhatsApp and then got a link to get status of verified. I want another way to verify Phone number if you guys you know please let me know your hacks. Well If you are Interested to know "How To Implement OTPless in your projects", The code is I have attached. https://sololearn.com/compiler-playground/WANcoQDS4ioj/?ref=app
8 Réponses
+ 4
You can use otplib for this purpose
https://www.npmjs.com/package/otplib
Here's the full tutorial for how to use it
+ 4
Yo, need phone verification for your app? Here's how you do it:
1. How it works:
User types in their phone number.
Firebase sends them a text with a code (OTP).
They enter the code, and boom, it’s verified.
2. How to set it up:
Get Firebase in your project.
In the Firebase Console, turn on Phone Authentication.
Add a phone number field and an OTP input on your form.
Use Firebase's functions: signInWithPhoneNumber to send the code, and confirmationResult.confirm to verify it.
3. Why it’s cool:
No QR codes, no WhatsApp. Just SMS.
Super simple for users to do.
Everything works fast, no hassle.
4. What you need:
Firebase account (free to start).
Basic HTML form to get it working.
https://sololearn.com/compiler-playground/WY82h0G9SPl8/?ref=app
+ 2
Mogger
Thanks for the answer. Love it, but I see some drawbacks like needing to manually integrate an SMS service and handle secret management.
Would love to see more alternatives.
Happy Warm-tea coding.
+ 2
You can use **Twilio Verify API**. It sends an OTP via SMS or a voice call, and you can verify the code directly in your application. It's simple, reliable, and doesn't require users to switch to another app.
+ 1
*Any alternative way, Let me know how to verify phone numbers in form
+ 1
Okay i see u
+ 1
Nouman Coding 🇸🇬 Boi,
Thanks man and Checked already there is quota kinda monthly 1,000 verifications per month on firebase.
But love to see more alternatives : )
Happy Verified Coding : )
+ 1
Upvote and green 💚😄✨