Better Auth's 195-line llms.txt shows what thorough AI preparation looks like

> The most comprehensive authentication framework for TypeScript

This implementation guide provides valuable insights into integrating Better Auth with various database systems, enhancing authentication processes in TypeScript applications. Readers will gain a clear understanding of how to leverage community-made and official adapters for secure and scalable solutions.

195
Lines
-81% vs avg
1
Sections
-94% vs avg
1000+
Companies
using llms.txt
1
Files
llms.txt

Key Insights

Focused approach

A streamlined 1-section structure keeps things simple and scannable.

Comprehensive detail

195 lines of thorough documentation for AI systems.

llms.txt Preview

First 100 lines of 195 total

# Better Auth

> The most comprehensive authentication framework for TypeScript

## Table of Contents

### Adapters

- [Community Adapters](/llms.txt/docs/adapters/community-adapters.md): Integrate Better Auth with community made database adapters.
- [Drizzle ORM Adapter](/llms.txt/docs/adapters/drizzle.md): Integrate Better Auth with Drizzle ORM.
- [MongoDB Adapter](/llms.txt/docs/adapters/mongo.md): Integrate Better Auth with MongoDB.
- [MS SQL](/llms.txt/docs/adapters/mssql.md): Integrate Better Auth with MS SQL.
- [MySQL](/llms.txt/docs/adapters/mysql.md): Integrate Better Auth with MySQL.
- [Other Relational Databases](/llms.txt/docs/adapters/other-relational-databases.md): Integrate Better Auth with other relational databases.
- [PostgreSQL](/llms.txt/docs/adapters/postgresql.md): Integrate Better Auth with PostgreSQL.
- [Prisma](/llms.txt/docs/adapters/prisma.md): Integrate Better Auth with Prisma.
- [SQLite](/llms.txt/docs/adapters/sqlite.md): Integrate Better Auth with SQLite.

### Authentication

- [Apple](/llms.txt/docs/authentication/apple.md): Apple provider setup and usage.
- [Atlassian](/llms.txt/docs/authentication/atlassian.md): Atlassian provider setup and usage.
- [Cognito](/llms.txt/docs/authentication/cognito.md): Amazon Cognito provider setup and usage.
- [Discord](/llms.txt/docs/authentication/discord.md): Discord provider setup and usage.
- [Dropbox](/llms.txt/docs/authentication/dropbox.md): Dropbox provider setup and usage.
- [Email & Password](/llms.txt/docs/authentication/email-password.md): Implementing email and password authentication with Better Auth.
- [Facebook](/llms.txt/docs/authentication/facebook.md): Facebook provider setup and usage.
- [Figma](/llms.txt/docs/authentication/figma.md): Figma provider setup and usage.
- [GitHub](/llms.txt/docs/authentication/github.md): GitHub provider setup and usage.
- [GitLab](/llms.txt/docs/authentication/gitlab.md): GitLab provider setup and usage.
- [Google](/llms.txt/docs/authentication/google.md): Google provider setup and usage.
- [Hugging Face](/llms.txt/docs/authentication/huggingface.md): Hugging Face provider setup and usage.
- [Kakao](/llms.txt/docs/authentication/kakao.md): Kakao provider setup and usage.
- [Kick](/llms.txt/docs/authentication/kick.md): Kick provider setup and usage.
- [LINE](/llms.txt/docs/authentication/line.md): LINE provider setup and usage.
- [Linear](/llms.txt/docs/authentication/linear.md): Linear provider setup and usage.
- [LinkedIn](/llms.txt/docs/authentication/linkedin.md): LinkedIn Provider
- [Microsoft](/llms.txt/docs/authentication/microsoft.md): Microsoft provider setup and usage.
- [Naver](/llms.txt/docs/authentication/naver.md): Naver provider setup and usage.
- [Notion](/llms.txt/docs/authentication/notion.md): Notion provider setup and usage.
- [Other Social Providers](/llms.txt/docs/authentication/other-social-providers.md): Other social providers setup and usage.
- [Paybin](/llms.txt/docs/authentication/paybin.md): Paybin provider setup and usage.
- [PayPal](/llms.txt/docs/authentication/paypal.md): Paypal provider setup and usage.
- [Polar](/llms.txt/docs/authentication/polar.md): Polar provider setup and usage.
- [Reddit](/llms.txt/docs/authentication/reddit.md): Reddit provider setup and usage.
- [Roblox](/llms.txt/docs/authentication/roblox.md): Roblox provider setup and usage.
- [Salesforce](/llms.txt/docs/authentication/salesforce.md): Salesforce provider setup and usage.
- [Slack](/llms.txt/docs/authentication/slack.md): Slack provider setup and usage.
- [Spotify](/llms.txt/docs/authentication/spotify.md): Spotify provider setup and usage.
- [TikTok](/llms.txt/docs/authentication/tiktok.md): TikTok provider setup and usage.
- [Twitch](/llms.txt/docs/authentication/twitch.md): Twitch provider setup and usage.
- [Twitter (X)](/llms.txt/docs/authentication/twitter.md): Twitter provider setup and usage.
- [Vercel](/llms.txt/docs/authentication/vercel.md): Vercel provider setup and usage.
- [VK](/llms.txt/docs/authentication/vk.md): VK ID Provider
- [Zoom](/llms.txt/docs/authentication/zoom.md): Zoom provider setup and usage.

### Basic Usage

- [Basic Usage](/llms.txt/docs/basic-usage.md): Getting started with Better Auth

### Comparison

- [Comparison](/llms.txt/docs/comparison.md): Comparison of Better Auth versus over other auth libraries and services.

### Concepts

- [API](/llms.txt/docs/concepts/api.md): Better Auth API.
- [CLI](/llms.txt/docs/concepts/cli.md): Built-in CLI for managing your project.
- [Client](/llms.txt/docs/concepts/client.md): Better Auth client library for authentication.
- [Cookies](/llms.txt/docs/concepts/cookies.md): Learn how cookies are used in Better Auth.
- [Database](/llms.txt/docs/concepts/database.md): Learn how to use a database with Better Auth.
- [Email](/llms.txt/docs/concepts/email.md): Learn how to use email with Better Auth.
- [Hooks](/llms.txt/docs/concepts/hooks.md): Better Auth Hooks let you customize BetterAuth's behavior
- [OAuth](/llms.txt/docs/concepts/oauth.md): How Better Auth handles OAuth
- [Plugins](/llms.txt/docs/concepts/plugins.md): Learn how to use plugins with Better Auth.
- [Rate Limit](/llms.txt/docs/concepts/rate-limit.md): How to limit the number of requests a user can make to the server in a given time period.
- [Session Management](/llms.txt/docs/concepts/session-management.md): Better Auth session management.
- [TypeScript](/llms.txt/docs/concepts/typescript.md): Better Auth TypeScript integration.
- [User & Accounts](/llms.txt/docs/concepts/users-accounts.md): User and account management.

### Errors

- [Account already linked to different user](/llms.txt/docs/errors/account_already_linked_to_different_user.md): The account is already linked to a different user.
- [Email doesn't match](/llms.txt/docs/errors/email_doesn't_match.md): The email doesn't match the email of the account.
- [Email not found](/llms.txt/docs/errors/email_not_found.md): The provider did not return an email address.
- [Errors](/llms.txt/docs/errors.md): Errors that can occur in Better Auth.
- [Invalid callback request](/llms.txt/docs/errors/invalid_callback_request.md): The callback request is invalid.
- [No callback URL](/llms.txt/docs/errors/no_callback_url.md): The callback URL was not found in the request.
- [No code](/llms.txt/docs/errors/no_code.md): The code was not found in the request.
- [OAuth provider not found](/llms.txt/docs/errors/oauth_provider_not_found.md): The OAuth provider was not found.
- [Signup disabled](/llms.txt/docs/errors/signup_disabled.md): Signup disabled error
- [State mismatch](/llms.txt/docs/errors/state_mismatch.md): The state parameter in the request doesn't match the state parameter in the cookie.
- [State not found](/llms.txt/docs/errors/state_not_found.md): The state parameter was not found in the request.
- [Unable to get user info](/llms.txt/docs/errors/unable_to_get_user_info.md): The user info was not found in the request.
- [Unable to link account](/llms.txt/docs/errors/unable_to_link_account.md): The account could not be linked.
- [Unknown error](/llms.txt/docs/errors/unknown.md): An unknown error occurred.

### Examples

- [Astro Example](/llms.txt/docs/examples/astro.md): Better Auth Astro example.

Better Auth is set up. Is yours?

Check your AI readiness in 30 seconds. See who AI recommends in your space. Free score, free account for the fixes.

1000+ sites already set up

Better Auth is ready for AI. Are you?

Check your AI readiness score in 30 seconds. Free score, free account for the fixes. Then generate your own llms.txt and start tracking your visibility.