Production-ready Next.js boilerplate with: - Runtime env validation (fail-fast on missing vars) - Feature-gated config (S3, Stripe, email, OAuth) - Docker + Coolify deployment pipeline - PostgreSQL + pgvector, MinIO S3, Better Auth - TypeScript strict mode (no ignoreBuildErrors) - i18n (en/es), AI modules, billing, monitoring Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.3 KiB
title, description, url
| title | description | url |
|---|---|---|
| Overview | Get started with authentication. | /docs/mobile/auth/overview |
Overview
TurboStarter uses Better Auth to handle authentication. It's a secure, production-ready authentication solution that integrates seamlessly with many frameworks and provides enterprise-grade security out of the box.
One of the core principles of TurboStarter is to do things **as simple as possible**, and to make everything **as performant as possible**.Better Auth provides an excellent developer experience with minimal configuration required, while maintaining enterprise-grade security standards. Its framework-agnostic approach and focus on performance makes it the perfect choice for TurboStarter.
Recently, Better Auth announced an incorporation of Auth.js (27k+ stars on Github), making it even more powerful and flexible.
You can read more about Better Auth in the official documentation.
TurboStarter supports multiple authentication methods:
- Password - the traditional email/password method
- Magic Link - magic links with deep linking
- Anonymous - allowing users to proceed anonymously
- OAuth - OAuth social providers (Apple, Google and Github preconfigured)
- Native Apple authentication - "Sign in with Apple" for iOS
- Native Google authentication - "Sign in with Google" for Android
As well as common applications flows, with ready-to-use views and components:
- Sign in - sign in with email/password or OAuth providers
- Sign up - sign up with email/password or OAuth providers
- Sign out - sign out
- Password recovery - forgot and reset password
- Email verification - verify email
You can construct your auth flow like LEGO bricks - plug in needed parts and customize them to your needs.
