mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
v1.4.43 W13 M-4 follow-up — the contract test at `src/__tests__/api/auth/check-user/route.test.ts` mocks `checkRateLimit` but the route now invokes `checkAuthSurfaceRateLimit`. Mock both, and rewire the rate-limit-exhausted case to drive the wrapper (which is now the gate). Also stub `hashToken` since the route hashes the identifier for the audit row.