Skip to content

RateLimitService

Defined in: packages/auth/src/ratelimit/rate-limit.service.ts:53

Fixed-window rate limiter. The window is anchored at the first request in each window (the store applies the TTL on the first increment), so a key that goes quiet naturally resets when its TTL elapses.

new RateLimitService(store, options): RateLimitService

Defined in: packages/auth/src/ratelimit/rate-limit.service.ts:57

RateLimitStore

RateLimitOptions

RateLimitService

consume(params): Promise<RateLimitResult>

Defined in: packages/auth/src/ratelimit/rate-limit.service.ts:65

ConsumeParams

Promise<RateLimitResult>