Rate Limiting
Per-endpoint, per-IP rate limiting.
from nexfetch_auth.core.config import RateLimitConfig
rate_limit=RateLimitConfig(
enabled=True,
window=60, # seconds
max_requests=10, # max requests per window
)
When the limit is exceeded, the endpoint returns 429 Too Many Requests with code RATE_LIMIT_EXCEEDED.
Disable
rate_limit=RateLimitConfig(enabled=False)