feat(throttling): add auth throttling and structured cooldown errors
This commit is contained in:
@@ -131,6 +131,14 @@ REST_FRAMEWORK = {
|
||||
"rest_framework.throttling.AnonRateThrottle",
|
||||
"rest_framework.throttling.UserRateThrottle",
|
||||
],
|
||||
"DEFAULT_THROTTLE_RATES": {
|
||||
"anon": "60/min",
|
||||
"user": "300/min",
|
||||
"otp_send_burst": "3/10m",
|
||||
"otp_send_sustained": "10/day",
|
||||
"login_password": "5/10m",
|
||||
"login_otp": "5/10m",
|
||||
},
|
||||
"EXCEPTION_HANDLER": "core.exceptions.handlers.exception_handler",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user