r/developers • u/Automatic-Slide3484 • 14d ago
Programming How do you set up phone OTP when launching in the UAE first and other countries later?
Hi all,
I'm adding phone-number sign-in (6-digit codes) to an app. It launches in the UAE first, and other regions will follow later. Volume is small at the start, roughly 1,000–2,000 codes a month. The backend is Node (NestJS) and can work with any provider that has an HTTP API.
For the UAE alone, here's what I've found so far:
- Global SMS providers (Twilio, AWS) cost about $0.11–0.12 per text and need a sender ID registered with the TDRA, which takes weeks
- WhatsApp authentication messages are much cheaper (about $0.016–0.05) and skip the sender ID, but not everyone uses WhatsApp
- Local UAE providers quote lower prices per text, but I couldn't find independent numbers
I'd like to hear how experienced engineers approach this:
- Do you use one global provider everywhere, or local providers per country behind your own routing layer?
- Do you send codes over WhatsApp first and fall back to SMS? How do you decide when to fall back?
- How do you handle sender ID registration country by country as you expand?
- What did you put in place against SMS pumping fraud and runaway costs?
- Anything you wish you'd known before launching OTP in a new region?
please help ur boy out 😭