Builder auth versus app user auth
capsule login authenticates you as the builder so the CLI can serve, deploy, and manage workspace resources.
The hosted app has a separate sign-in flow for its users. Those users show up in handlers as session.user or ctx.user.
Page and data access
Gate pages and data handlers when they need a signed-in app user.Collection scopes
Collection scope controls which identity owns records.app: shared app-level recordsowner: records owned by the current owner identityuser: records owned by the current signed-in app user
Integration scope
Integrations belong to app users. If a page or chat handler needs GitHub, Gmail, AWS, or another user credential, read it fromsession.integrations or ctx.integrations.