updated rate limit
This commit is contained in:
parent
887c0dfbc7
commit
7d757e3348
|
|
@ -1,9 +1,9 @@
|
|||
const rateLimit = require("express-rate-limit");
|
||||
|
||||
// Rate limiter for device registration - 5 requests per 15 minutes per IP
|
||||
// Rate limiter for device registration - 50 requests per 15 minutes per IP
|
||||
const registrationLimiter = rateLimit({
|
||||
windowMs: 15 * 60 * 1000, // 15 minutes
|
||||
max: 5,
|
||||
max: 50,
|
||||
message: {
|
||||
success: false,
|
||||
error: "Too many registration attempts. Please try again later.",
|
||||
|
|
|
|||
Loading…
Reference in New Issue