Danijel Martinek
b61bb0c11e
feat(auth): add signIn rate-limit backfill with dual ip/account budgets
Wires the rate-limit primitive end-to-end through auth.signIn as the
canonical credential-stuffing defence example:
- manifest: rateLimit [ip 5/1m, account 10/1h] on signIn use case
- use case: rateLimit: IRateLimit dep; dual consume + TooManyRequestsError
- binders: ctx.rateLimit ?? new NoopRateLimit() in bind-production + bind-dev-seed
- tRPC: TooManyRequestsError → TOO_MANY_REQUESTS error code in authProcedure
- tests: RecordingRateLimit dual-consume assertion; InMemoryRateLimit
budget-1 ip + account rejection; coverage 100% on use-cases layer
- ESLint: _manifest-ast.js extractRateLimitNames handles RateLimitBudget
objects ({name,window,budget}) in addition to plain string literals,
no-undeclared-rate-limit passes on both "ip" and "account" call sites
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 09:22:41 +00:00
..
2026-05-20 09:22:41 +00:00
2026-05-20 08:43:30 +00:00
2026-05-13 07:34:00 +02:00
2026-05-12 23:18:02 +02:00
2026-05-19 11:51:30 +00:00
2026-05-19 11:51:30 +00:00
2026-05-12 23:49:32 +02:00
2026-05-12 23:49:32 +02:00
2026-05-12 23:19:11 +02:00
2026-05-12 23:19:11 +02:00
2026-05-13 07:41:01 +02:00
2026-05-13 07:41:01 +02:00
2026-05-13 07:40:19 +02:00
2026-05-13 07:40:19 +02:00
2026-05-13 07:40:40 +02:00
2026-05-13 07:40:40 +02:00
2026-05-12 23:20:37 +02:00
2026-05-12 23:20:37 +02:00
2026-05-19 11:51:30 +00:00
2026-05-18 15:43:37 +00:00
2026-05-19 11:51:30 +00:00
2026-05-12 23:51:42 +02:00
2026-05-19 11:51:30 +00:00
2026-05-19 11:51:30 +00:00
2026-05-19 11:51:30 +00:00
2026-05-12 23:51:06 +02:00
2026-05-20 08:43:30 +00:00
2026-05-20 09:22:41 +00:00
2026-05-18 18:33:48 +00:00
2026-05-18 18:33:48 +00:00
2026-05-12 23:22:43 +02:00
2026-05-12 23:22:43 +02:00
2026-05-18 11:03:17 +02:00
2026-05-18 11:03:17 +02:00
2026-05-12 23:21:38 +02:00
2026-05-12 23:21:38 +02:00