diff --git a/routes/auth.go b/routes/auth.go index d5c0e19..0327c99 100644 --- a/routes/auth.go +++ b/routes/auth.go @@ -8,9 +8,9 @@ import ( func AuthRoute (e *gin.Engine, h *handlers.AuthHandler) { - // maximum of 3 tokens and 1 refill per 15 seconds. - mailRoutesRateLimiter := middleware.NewRateLimiter(10, 1.0/30.0) - standardRateLimiter := middleware.NewRateLimiter(10, 1.0/6.0) + // maximum of 30 tokens and 1 refill per 30 seconds. + mailRoutesRateLimiter := middleware.NewRateLimiter(30, 1.0/30.0) + standardRateLimiter := middleware.NewRateLimiter(20, 1.0/6.0) faculty := e.Group("/api/auth/faculty") {