For the complete documentation index, see llms.txt. Prefer markdown by appending.mdto documentation URLs or sendingAccept: text/markdown.
Overview
Better Auth powers mobile sign-up, login, sessions, and OAuth. Production-ready authentication shared with your web app and API.
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.
Why Better Auth?
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 while keeping enterprise-grade security. Its framework-agnostic approach and focus on performance make it the perfect choice for TurboStarter.
Recently, Better Auth announced an incorporation of Auth.js (28k+ 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
- OTP - one-time passwords sent to email or phone
- Anonymous - allowing users to proceed anonymously
- 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, magic link, one-time password, or OAuth providers
- Sign up - sign up with email/password or OAuth providers
- Sign out - end session by signing out
- Password recovery - forgot and reset password
- Email verification - verify email address
You can build your auth flow like LEGO bricks - plug in the parts you need and customize them.
Configuration
Enable password, magic link, OTP, or OAuth on mobile. Configure Apple, Google, and GitHub providers and set your app scheme as a trusted origin.
User flow
Follow the TurboStarter authentication flow from sign-up to session. How login, callbacks, and protected routes work in your mobile app.
OAuth
Enable dozens of OAuth providers through Better Auth with minimal config. Overview of social login options for Expo mobile apps.
Two-Factor Authentication (2FA)
Add two-factor authentication to your mobile app with TOTP and backup codes. Secure enrollment and verification flows via Better Auth.
How is this guide?
Last updated on