---
name: "better-auth-security-best-practices"
description: "Configure rate limiting, manage auth secrets, set up CSRF protection, define trusted origins, secure sessions and cookies, encrypt OAuth tokens, track IP addresses, and implement audit logging for Better Auth. Use when users need to secure their auth setup, prevent brute force attacks, or harden a Better Auth deployment."
slug: "better-auth-security-best-practices"
metadata:
  sources:
    -
      kind: "github-dir"
      commit: "6a1636950a1d7fc53602639ce7505a4a5d39c797"
      path: "security"
      repo: "better-auth/skills"
      trackingRef: "main"
      url: "https://github.com/better-auth/skills"
key: "better-auth/skills/better-auth-security-best-practices"
---

