update limiter

This commit is contained in:
Jake Kasper
2025-08-21 13:24:09 -05:00
parent 8b21687166
commit d6e7ba8c93

View File

@@ -51,7 +51,7 @@ app.use(limiter);
// Stricter rate limiting for auth routes // Stricter rate limiting for auth routes
const authLimiter = rateLimit({ const authLimiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes windowMs: 15 * 60 * 1000, // 15 minutes
max: 5, // Limit each IP to 5 auth requests per windowMs max: 50, // Limit each IP to 50 auth requests per windowMs (increased for development)
message: 'Too many authentication attempts, please try again later.', message: 'Too many authentication attempts, please try again later.',
standardHeaders: true, standardHeaders: true,
legacyHeaders: false, legacyHeaders: false,