SKILL48.3K installs226

Better Auth Security Best Practices

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.

Type
Skill
Author
better-auth
Category
Security
GitHub stars
226
Installs
48.3K
Last updated
October 19, 2026

Install

npx skills add https://github.com/better-auth/skills --skill better-auth-security-best-practices

Use cases


Frequently Asked Questions

What does this skill cover for Better Auth security?

It covers rate limiting, auth secret management, CSRF protection, trusted origins, session and cookie hardening, OAuth token encryption, IP tracking, and audit logging.

Can it help prevent brute force attacks?

Yes, configuring rate limiting is one of the areas it walks through, alongside session and cookie hardening.

Does it apply to an existing Better Auth setup?

Yes, it is meant to tighten an existing deployment as well as secure a new one.


About this skill

Hardens a Better Auth deployment by configuring rate limiting, managing auth secrets, setting up CSRF protection, defining trusted origins, and securing sessions and cookies. It also covers encrypting OAuth tokens, tracking IP addresses, and implementing audit logging. Use it to prevent brute force attacks and tighten an existing auth setup.

Summary written with AI assistance from the project's public description.


Categories


More from better-auth


Similar Skills