C4D Practice
← Browse by Chapter
#22Chapter 03 — Managing Your Context and Sessions
I've started this session with `claude --add-dir ../client-sdk`. The working directory is the SERVICE repo; the secondary directory is the CLIENT SDK.

Ownership:
- SERVICE owns: authentication token issuance, validation, refresh endpoint behaviour.
- CLIENT owns: token storage, refresh scheduling, retry logic on 401.

Task: users are getting logged out after 24 hours despite refresh tokens being valid. Symptom manifests in CLIENT on the first request after a 24h idle.

Read only the files each repo owns for the concern involved. Do not read the CLIENT's payment code or the SERVICE's admin code. Report what you find before proposing changes.
Mastering Claude Code
Mastering Claude Code

These prompts are excerpts from the book. Get the full collection with explanations and use cases.

Get the Book →