Add rate limiting for security

- Add httprate dependency for rate limiting
- Apply 10 requests per minute limit on auth endpoints
- Prevent brute force attacks on login/register
- Update README with security features
This commit is contained in:
2025-11-26 20:37:52 +01:00
parent b859c3da0c
commit 353a6c1f4b
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ toolchain go1.24.10
require (
github.com/go-chi/chi/v5 v5.2.3
github.com/go-chi/cors v1.2.2
github.com/go-chi/httprate v0.7.4
github.com/golang-jwt/jwt/v5 v5.3.0
github.com/google/uuid v1.6.0
github.com/joho/godotenv v1.5.1