> **better-auth-best-practices** — skill 1 of 6 in [better-auth/skills](https://skillsdocs.com/better-auth/skills).
>
> Book (all skills, one file): https://skillsdocs.com/better-auth/skills.md
> Machine manifest: https://skillsdocs.com/better-auth/skills/.well-known/agent-skills/index.json
> Install the book: `npx skills add better-auth/skills`
> Upstream: https://github.com/better-auth/skills/blob/main/better-auth/best-practices/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/better-auth/skills/main/better-auth/best-practices/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/better-auth/skills/main/better-auth/best-practices/
> Licence: No licence detected — all rights reserved by its authors
>
> Content © its authors. This skill's body is not served here; the links above are. Takedown: https://github.com/DreambaseAI/skillsdocs/issues/new?labels=takedown&title=Takedown+request

# better-auth-best-practices

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.

No licence could be detected for this skill at either the repository or the skill level, so its body is not reproduced here. Read it upstream:

https://raw.githubusercontent.com/better-auth/skills/main/better-auth/best-practices/SKILL.md
