Better Auth — a framework-agnostic authentication and authorization framework for TypeScript. Read the appropriate README.md according to the user's task, and from there follow through to individual files.
Directory structure
skills/better-auth/
SKILL.md
references/
getting-started/
README.md
installation.md
basic-usage.md
concepts/
README.md
api.md
cli.md
client.md
cookies.md
database.md
dynamic-base-url.md
email.md
hooks.md
oauth.md
plugins.md
rate-limit.md
session-management.md
typescript.md
users-accounts.md
adapters/
README.md
community-adapters.md
drizzle.md
mongodb.md
mssql.md
mysql.md
other-relational.md
postgresql.md
prisma.md
sqlite.md
integrations/
README.md
astro.md
convex.md
electron.md
elysia.md
encore.md
expo.md
express.md
fastify.md
hono.md
lynx.md
nestjs.md
next.md
nitro.md
nuxt.md
react-router.md
solid-start.md
svelte-kit.md
tanstack.md
waku.md
examples/
README.md
astro.md
next-js.md
nuxt.md
react-router.md
svelte-kit.md
authentication/
README.md
email-password.md
social-providers-common.md
other-social-providers.md
social-apple.md
social-atlassian.md
social-cognito.md
social-discord.md
social-dropbox.md
social-facebook.md
social-figma.md
social-github.md
social-gitlab.md
social-google.md
social-huggingface.md
social-kakao.md
social-kick.md
social-line.md
social-linear.md
social-linkedin.md
social-microsoft.md
social-naver.md
social-notion.md
social-paybin.md
social-paypal.md
social-polar.md
social-railway.md
social-reddit.md
social-roblox.md
social-salesforce.md
social-slack.md
social-spotify.md
social-tiktok.md
social-twitch.md
social-twitter.md
social-vercel.md
social-vk.md
social-wechat.md
social-zoom.md
plugins/
README.md
admin.md
agent-auth.md
anonymous.md
api-key.md
api-key-advanced.md
api-key-reference.md
autumn.md
bearer.md
captcha.md
chargebee.md
commet.md
community-plugins.md
creem.md
device-authorization.md
dodopayments.md
dub.md
email-otp.md
generic-oauth.md
have-i-been-pwned.md
i18n.md
jwt.md
last-login-method.md
magic-link.md
mcp.md
multi-session.md
oauth-provider.md
oauth-proxy.md
oidc-provider.md
one-tap.md
one-time-token.md
open-api.md
organization.md
passkey.md
phone-number.md
polar.md
scim.md
siwe.md
sso.md
stripe.md
test-utils.md
two-factor.md
username.md
reference/
README.md
contributing.md
options.md
resources.md
security.md
faq.md
instrumentation.md
telemetry.md
errors.md
error-account-already-linked.md
error-account-not-linked.md
error-email-doesnt-match.md
error-email-not-found.md
error-internal-server-error.md
error-invalid-callback-request.md
error-invalid-code.md
error-no-callback-url.md
error-no-code.md
error-oauth-provider-not-found.md
error-signup-disabled.md
error-state-invalid.md
error-state-mismatch.md
error-state-not-found.md
error-unable-to-create-session.md
error-unable-to-create-user.md
error-unable-to-get-user-info.md
error-unable-to-link-account.md
error-unknown.md
guides/
README.md
auth0-migration.md
browser-extension.md
clerk-migration.md
create-a-db-adapter.md
dynamic-base-url.md
next-auth-migration.md
optimizing-for-performance.md
saml-sso-with-okta.md
supabase-migration.md
workos-migration.md
your-first-plugin.md
samples/
README.md
astro.md
client-setup.md
convex.md
electron.md
elysia.md
email-password-auth.md
email-verification.md
encore.md
expo.md
express.md
fastify.md
hono.md
hooks.md
lynx.md
nestjs.md
next.md
nitro.md
nuxt.md
password-reset.md
react-router.md
server-setup.md
session-management.md
sign-out.md
social-sign-in.md
solid-start.md
svelte-kit.md
tanstack.md
two-factor-auth.md
user-management.md
waku.md
scripts/
README.md
cli.md
generate.md
install.md
Exploration procedure
Derive the category from the task, and identify the target page in the category's README.md:
- Find the category corresponding to the task in the mapping table below
- For that category,
references/{category}/README.mdrefer to and identify the target page - Read the
.mdof the relevant page to check the details
Task → Category Mapping
| Task | Category | Reference README |
|---|---|---|
| Installation, initial setup, creating the auth instance | getting-started | references/getting-started/README.md |
| Overview of basic authentication patterns, email/password, and session retrieval | getting-started | references/getting-started/README.md |
| auth.api, client, session management, cookies, DB, hooks, rate limiting | concepts | references/concepts/README.md |
| OAuth flows, type safety, plugin concepts, dynamic base URL | concepts | references/concepts/README.md |
| DB adapters for Prisma / Drizzle / MongoDB / SQLite / PostgreSQL / MySQL, etc. | adapters | references/adapters/README.md |
| Community-made third-party DB adapters | adapters | references/adapters/README.md |
| Framework integrations for Next.js / Nuxt / SvelteKit / Hono / Express / Fastify / Expo, etc. | integrations | references/integrations/README.md |
| Integration procedures for Astro / React Router / TanStack / Convex / Electron / NestJS, etc. | integrations | references/integrations/README.md |
| Official walkthrough examples (Astro, Next.js, Nuxt, React Router, SvelteKit) | examples | references/examples/README.md |
| Email/Password authentication, social login (GitHub, Google, Apple, etc.) | authentication | references/authentication/README.md |
| Configuration for specific social providers (Discord, Microsoft, LINE, Twitter, etc.) | authentication | references/authentication/README.md |
| 2FA (TOTP), passkeys, magic links, SMS OTP, anonymous authentication | plugins | references/plugins/README.md |
| Organization, Admin, SSO, SCIM, API Key, JWT, Bearer token | plugins | references/plugins/README.md |
| Billing and subscription integrations for Stripe / Chargebee / Polar / Autumn, etc. | plugins | references/plugins/README.md |
| MCP authentication, agent authentication, SIWE, captcha, password breach checks | plugins | references/plugins/README.md |
| Want to check the list of community-made plugins | plugins | references/plugins/README.md |
| List of configuration options, security guide, FAQ | reference | references/reference/README.md |
| Error code investigation, OpenTelemetry, telemetry | reference | references/reference/README.md |
| Contribution guide, collection of resources such as community videos/blogs | reference | references/reference/README.md |
| Migration from Auth.js (NextAuth) / Auth0 / Clerk / Supabase / WorkOS | guides | references/guides/README.md |
| Creating custom plugins, creating custom DB adapters, performance optimization | guides | references/guides/README.md |
| SAML SSO (Okta), browser extension integration, dynamic base URL details | guides | references/guides/README.md |
| Typical usage, working code examples, framework-specific setup snippets | samples | samples/README.md |
| Want to know installation commands, CLI commands, and schema generation | scripts | scripts/README.md |