RateLimitIncrementResult
Defined in: packages/auth/src/ratelimit/rate-limit-store.ts:8
Counter store backing the fixed-window rate limiter.
The package defines the interface; the host application provides a concrete implementation (the app ships a Postgres-backed store). Unit tests use an in-memory fake driven by an injectable clock.
Properties
Section titled “Properties”count:
number
Defined in: packages/auth/src/ratelimit/rate-limit-store.ts:10
Counter value after this increment (1 on the first hit of a window).
ttlSeconds
Section titled “ttlSeconds”ttlSeconds:
number
Defined in: packages/auth/src/ratelimit/rate-limit-store.ts:12
Seconds remaining until the window — and therefore the counter — resets.