DEV Community

kwtSMS
kwtSMS

Posted on

SMS one-time-code sign-in for Next.js, through kwtSMS

Try it in 2 minutes with no account: demo mode shows the code on the page, nothing is sent.
Then add your API username and password, test with test=1, and go live with a few environment variables and your own Sender ID.

  • Next.js App Router, TypeScript, Better Auth phone-number plugin
  • English and Arabic (RTL)
  • Kuwait number input: 8-digit local, +965 or 00965, Arabic and Persian digits
  • Abuse limits on by default: country allowlist, per-IP and per-number limits, resend cooldown, daily cap
  • One SMS part per code, English and Arabic
  • Deploy button for Vercel (bring a Postgres URL, for example Neon)

MIT license: https://github.com/kwtsms/kwtsms-nextjs-otp
Free kwtSMS test account (Kuwait; elsewhere contact us): https://www.kwtsms.com/cportal/signup/ | https://www.kwtsms.com/support.html

Top comments (0)