Skip to main content
API Reference / modelence / server / AuthRateLimitsConfig
AuthRateLimitsConfig = object
Defined in: packages/modelence/src/app/authConfig.ts:73 Per-action rate limit overrides for authentication endpoints. Each bucket accepts an array of rules that are merged into the built-in defaults by (type, window) tuple:
  • A rule whose (type, window) matches a default replaces that default’s limit.
  • A rule whose (type, window) does not match any default is added as an extra rule for the bucket.
  • Defaults whose (type, window) is not overridden are kept.
This means you can tighten a single window without accidentally dropping the other built-in protections for that bucket.

Examples

Properties