45dc9620

By: Michael Lynch <git@mtlynch.io>

Add unit tests and e2e tests for email auth

- Unit tests for ratelimit.LoginEmailLimiter (per-user limit, global
  limit, 24h window expiry)
- Unit tests for store/sqlite login token operations (valid consume,
  not-found, expired, already-used) and ReadUserByEmail
- E2e login helper and auth spec (redirect to login, login flow,
  logout, post-logout protection)
- Update browse/media e2e specs to authenticate via login helper
- Simplify global-setup.ts (no per-session DB setup needed)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codeberg

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval - - - -
Build 3s 2m50s - -
Test - - - -
Deploy - - - -
Suite 0s 2m51s - -