mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 22:25:44 +00:00
misc: removed comment
This commit is contained in:
@@ -56,7 +56,6 @@ export const mfaRateLimit: RateLimitOptions = {
|
|||||||
timeWindow: 60 * 1000,
|
timeWindow: 60 * 1000,
|
||||||
max: 20,
|
max: 20,
|
||||||
keyGenerator: (req) => {
|
keyGenerator: (req) => {
|
||||||
// fallback to IP to avoid global rate limiting when authorization is set to empty
|
|
||||||
return req.headers.authorization?.split(" ")[1] || req.realIp;
|
return req.headers.authorization?.split(" ")[1] || req.realIp;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user