Skip to content

Commit

Permalink
fix: 휴대전화 로그인 라우트 1분에 20분으로 제한 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
potados99 committed Oct 5, 2021
1 parent d39f663 commit 649094b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/infrastructure/webserver/libs/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export function defineRoute<TParams = any, TQuery = any, TBody = any>(
}

export const apiLimiter = rateLimit({
windowMs: 1000 * 60 * 5, // 5분에
max: 15, // 15번
windowMs: 1000 * 60 * 1, // 1분에
max: 20, // 20번
handler(req, res, next) {
res.status(429).json({
statusCode: 429,
Expand Down

0 comments on commit 649094b

Please sign in to comment.