What problem does it solve?
This Skill helps users secure their Better Auth setup by implementing best practices for rate limiting, CSRF protection, session security, and other critical aspects of authentication security.
Core Features & Use Cases
- Rate Limiting: Configure rate limiting to prevent brute force attacks and abuse of authentication endpoints.
- CSRF Protection: Implement multi-layer CSRF protection to secure against cross-site request forgery.
- Session Security: Set up secure session management with expiration, caching, and cookie security.
- OAuth Security: Secure OAuth tokens and manage state tokens for OAuth flows.
- IP-Based Security: Track and secure user IP addresses for additional security.
- Database Hooks: Implement database hooks for security auditing and logging.
- Background Tasks: Configure background tasks for non-blocking operations like email sending.
- Account Enumeration Prevention: Prevent account enumeration with consistent error messages and dummy operations.
- Complete Security Configuration: Provide a comprehensive example of security configuration for Better Auth.
Quick Start
Run the 'setup-auth-security' script to configure rate limiting, CSRF protection, and session security for your Better Auth instance.