3 Commits (main)

Author SHA1 Message Date
Deardo Satria baa01c38bd Memoize getCurrentUser per request and document cache rules
getCurrentUser is wrapped in React cache so pages that call it from
several components validate the session once per request. Cross-request
caching ("use cache", unstable_cache, module-level storage) stays
forbidden for cleo data and sessions: the PHP app writes to the same DB,
and a cached session would keep a logged-out user signed in.

CLAUDE.md and the cleo-code-review skill now state both rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 minutes ago
Deardo Satria 3bc5ce6d70 Move logged-in redirect from proxy to login page 2 days ago
Deardo Satria 6e512a14fc Add login server action, getCurrentUser, and progress notes 2 weeks ago