refactor(api): add redis-backed rate limiting fallback
This commit is contained in:
@@ -33,7 +33,7 @@ const authConfig = {
|
||||
// Rate limit: 5 login attempts per 15 minutes per email
|
||||
const rateLimitResult = isE2eTestMode
|
||||
? { allowed: true }
|
||||
: authRateLimiter(email.toLowerCase());
|
||||
: await authRateLimiter(email.toLowerCase());
|
||||
if (!rateLimitResult.allowed) {
|
||||
// Audit failed login (rate limited)
|
||||
void createAuditEntry({
|
||||
|
||||
Reference in New Issue
Block a user