feat: implement rate limiting for authentication endpoints and enhance error handling for login attempts

This commit is contained in:
Anish Sarkar 2026-02-08 18:08:56 +05:30
parent 54b4501ca6
commit 79f004bbb1
6 changed files with 3374 additions and 3226 deletions

View file

@ -31,6 +31,10 @@ const AUTH_ERROR_MESSAGES: AuthErrorMapping = {
title: "Too many attempts",
description: "Please wait before trying again",
},
RATE_LIMIT_EXCEEDED: {
title: "Too many attempts",
description: "You've made too many requests. Please wait a minute and try again.",
},
"500": {
title: "Server error",
description: "Something went wrong on our end. Please try again",