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
configuredevShellbackendbackend-devcheck-bashcheck-frontendcheck-go-formattingcheck-go-test-packagescheck-trailing-newlinecheck-trailing-whitespacediagramdocker-imagee2e-testsgo-testsimport-from-tinybeanslint-sqllittle-momentslittle-moments-devx86_64-linux