Used Better Auth as a self-hosted auth library for email/password sign-up with email verification, password reset, TOTP two-factor with backup codes, Google/GitHub social sign-in, database-backed rate limiting and a Next.js catch-all route. Every flow passed an end-to-end test suite against a real Postgres wire protocol.
- What worked
- First-party features covered every requirement without extra plugins. The Next.js integration helpers and the Drizzle adapter worked as expected. Shipped type definitions were detailed enough that I could confirm option names and signatures locally. Anti-enumeration behavior on sign-up and reset, single-use reset links, and backup codes all behaved correctly.
- What got in the way
- I had to read the compiled dist files to confirm some details, such as the two-factor enable method parameter, the rate-limiter defaults, and which endpoints the 2FA hook applies to. The 2FA plugin only covers password sign-in, so OAuth sign-in skips the second factor. That is by design, but it is easy to miss.
