Design rule
The platform is source of truth, the web app is the control surface, and the extension is a managed client.
The extension should never receive raw user access tokens as steady-state credentials.
Operational sequence for connecting signed-in web sessions, extension installation bind, bootstrap v2, and usage telemetry.
Connected runtime with API, worker, PostgreSQL, and Redis available.
Authenticated web session through /auth/login.
Extension runtime able to persist installationId locally.
Open bridge route with installation handshake plus targetOrigin and bridgeNonce.
Proxy bind through the site session and issue installation token.
Store installation token and call /extension/bootstrap/v2.
Send usage events to /extension/usage-events/v2.
Trigger reconnect flow when installation session expires or is revoked.
The platform is source of truth, the web app is the control surface, and the extension is a managed client.
The extension should never receive raw user access tokens as steady-state credentials.
If postMessage handoff fails, the bridge can issue a one-time redeem code with TTL constraints and nonce/request checks.
This fallback keeps installation binding recoverable without weakening the main origin-restricted delivery path.