improvements: address feedback

This commit is contained in:
Scott Wilson
2025-06-04 19:05:22 -07:00
parent 698260cba6
commit ce45c1a43d
+2 -2
View File
@@ -117,8 +117,8 @@ export const requestAccessLimit: RateLimitOptions = {
export const smtpRateLimit = ({ export const smtpRateLimit = ({
keyGenerator = (req) => req.realIp keyGenerator = (req) => req.realIp
}: Pick<RateLimitOptions, "keyGenerator"> = {}): RateLimitOptions => ({ }: Pick<RateLimitOptions, "keyGenerator"> = {}): RateLimitOptions => ({
timeWindow: 20 * 1000, timeWindow: 40 * 1000,
hook: "preValidation", hook: "preValidation",
max: 1, max: 2,
keyGenerator keyGenerator
}); });