+ 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

27th Dec 2024, 11:15 AM
Errors Man
Errors Man - avatar
8 Respostas
+ 4
You can use otplib for this purpose https://www.npmjs.com/package/otplib Here's the full tutorial for how to use it
27th Dec 2024, 11:31 AM
Mogger
+ 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
27th Dec 2024, 11:45 AM
Nouman Coding 🇾🇬
Nouman Coding 🇾🇬 - avatar
+ 3
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.
27th Dec 2024, 5:39 PM
Hacker Santa (Anya)
Hacker Santa (Anya) - avatar
+ 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.
27th Dec 2024, 11:54 AM
Errors Man
Errors Man - avatar
+ 1
*Any alternative way, Let me know how to verify phone numbers in form
27th Dec 2024, 11:26 AM
Errors Man
Errors Man - avatar
+ 1
Okay i see u
27th Dec 2024, 11:27 AM
â“‚ïžĂ‹
â“‚ïžĂ‹ - avatar
+ 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 : )
27th Dec 2024, 11:51 AM
Errors Man
Errors Man - avatar
+ 1
Upvote and green 💚😄✹
27th Dec 2024, 11:51 AM
Nouman Coding 🇾🇬
Nouman Coding 🇾🇬 - avatar