Skip to content

Commit 46d5f10

Browse files
author
Manuel
committed
chore: increase quick-key rate limit to 10 per hour
1 parent 3093015 commit 46d5f10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/routes/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ authRouter.post('/quick-key', asyncHandler(async (req: any, res: Response) => {
5151
const now = Date.now();
5252
const window = quickKeyRateLimit.get(ip);
5353
if (window && (now - window.ts) < 3600_000) {
54-
if (window.count >= 3) {
54+
if (window.count >= 10) {
5555
return res.status(429).json({
5656
error: 'Too many key requests. Try again in 1 hour.',
5757
code: 'RATE_LIMITED'

0 commit comments

Comments
 (0)