---
name: "better-auth-best-practices"
description: "Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables. Use when users mention Better Auth, betterauth, auth.ts, or need to set up TypeScript authentication with email/password, OAuth, or plugin configuration."
slug: "better-auth-best-practices"
metadata:
  sources:
    -
      kind: "github-dir"
      commit: "6a1636950a1d7fc53602639ce7505a4a5d39c797"
      path: "better-auth/best-practices"
      repo: "better-auth/skills"
      trackingRef: "main"
      url: "https://github.com/better-auth/skills"
key: "better-auth/skills/better-auth-best-practices"
---

