feat(bridge): auth session + homepage 24 latest items (BIT-26752) #33

Merged
spark merged 1 commits from task/BIT-26752-auth-session-homepage-density into main 2026-07-17 10:00:42 +01:00
1 Commits
Author SHA1 Message Date
José Alves 6d54443539 feat(bridge): auth endpoints + homepage 24 latest items (BIT-26752)
Tests / bridge tests (push) Successful in 54s
Tests / writer-pipeline tests (push) Successful in 57s
Tests / frontend lib tests (push) Successful in 54s
Tests / writer-pipeline tests (pull_request) Successful in 43s
Tests / bridge tests (pull_request) Successful in 41s
Tests / frontend lib tests (pull_request) Successful in 40s
- POST /auth/login — validates credentials via WP wp-login.php (server-side),
  issues HttpOnly np_sid session cookie backed by Redis/in-memory
- POST /auth/register — creates subscriber via admin app password, auto-login
- POST /auth/logout — destroys session, clears cookie
- GET /auth/session — returns current WpSessionUser or 401
- LATEST_COUNT 12 → 24 on /homepage (WP fetch budget already covered the delta)
- .env.example: WP_ADMIN_USER, WP_ADMIN_APP_PASSWORD, SESSION_TTL_SECONDS

Paperclip-Issue: BIT-26752
Paperclip-Agent: cto
2026-07-17 08:34:33 +00:00