LOW AI PREVALENCE: HIGH auth.flow.no-rate-limit
A /login, /signin, /auth, or /reset-password POST handler is registered without any rate-limit middleware in scope.
Why AI tools produce this: AI coding tools generate this anti-pattern by default, it appears in a large share of AI-written auth code.
Why this matters
Without a rate limit, credential-stuffing and brute-force attacks are essentially free for the attacker.
Add express-rate-limit, @fastify/rate-limit, or a gateway-level WAF rule. Per-IP + per-account is the typical pairing.
VULNERABLE
SAFE
Suppressing this rule
If a finding is a genuine false positive, scope the suppression to the exact line and leave a reason, never disable the rule project-wide. Disable directives are line-scoped by design.
// oauthlint-disable-next-line auth.flow.no-rate-limit -- <reason>