docs: add auth singleton note to CLAUDE.md MCP-integratie sectie

This commit is contained in:
Janpeter Visser 2026-05-01 15:00:32 +02:00
parent 8a8c94ee9d
commit b651eb8f92

View file

@ -303,6 +303,7 @@ Dit blijft gelden als je tussen jobs door commits, branches of pushes hebt gedaa
**Code koppelen aan app**
- 'Pak de volgende job uit de Scrum4Me-queue' / 'draai de queue leeg' / 'batch agent' — scrum4me-mcp registreert bij startup een ClaudeWorker-record + heartbeat (5s); SIGTERM/SIGINT ruimt 'm op. UI telt actieve workers via `last_seen_at < now() - 15s`.
- Auth: `src/auth.ts``getAuth()` resolved user_id + token_id uit SCRUM4ME_TOKEN bij startup (fail-fast bij invalid token), gecached als module-singleton.
### Prompt