Archive the differentiated YuXinGu product docs, AI engineering system, design contract, and Go/Vue scaffold. Next execution prioritizes Cece-parity over early innovation (see .ai/product/STRATEGY.md). Co-authored-by: Cursor <cursoragent@cursor.com>
462 B
462 B
Playbook: Login / Auth
Steps
- Cite ADR-0004
- Define Visitor vs User in API behavior (
.ai/domain.md) - Issue Bearer token; document in OpenAPI
- Middleware extracts
user_id - Persist session/user as designed (Postgres MVP; Redis deferred)
- H5: store token via adapter (
localStoragekeyyxg_token) - SDK
getTokenwired - Tests: invalid token / expired / ownership
- Security review checklist
- Never accept
X-User-Idalone as auth