Open-source SMS one-time-code sign-in for Next.js released via kwtSMS
A new open-source project provides SMS one-time-code sign-in for Next.js App Router applications written in TypeScript, built on the Better Auth phone-number plugin. It includes a demo mode that displays the code on the page without sending any SMS, so developers can try it without an account. The template supports English and Arabic (including right-to-left layout), and accepts Kuwaiti phone numbers in several formats. Abuse protections are enabled by default, including a country allowlist, per-IP and per-number limits, a resend cooldown, and a daily cap. The project is released under the MIT license and offers a one-click Vercel deployment that requires a Postgres database URL.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in