From 4683d8a077b39f05bff0ddd550e4a861bbe77fbb Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 15 Apr 2021 15:07:07 -0700 Subject: [PATCH] fix: update comment and export rateLimiter --- src/node/routes/login.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/routes/login.ts b/src/node/routes/login.ts index b89470ae..b1cd34b9 100644 --- a/src/node/routes/login.ts +++ b/src/node/routes/login.ts @@ -12,8 +12,8 @@ export enum Cookie { } // RateLimiter wraps around the limiter library for logins. -// It allows 2 logins every minute and 12 logins every hour. -class RateLimiter { +// It allows 2 logins every minute plus 12 logins every hour. +export class RateLimiter { private readonly minuteLimiter = new Limiter(2, "minute") private readonly hourLimiter = new Limiter(12, "hour")