Confirmed problem
SessionBridge waits for /api/session to return data.token before marking migration complete, but the session route returns authentication state and expiry without a token. The compatibility bridge cannot complete as documented.
Scope
- Decide whether legacy token migration is still required.
- If required, redesign it around the actual secure session contract without exposing tokens to page JavaScript.
- If no longer required, remove the bridge, legacy storage key handling, dead UI, and documentation.
- Make migration idempotent and visibly recoverable on failure.
Acceptance criteria
Required verification
- Legacy-session fixture test if retained.
- Fresh session, expired session, non-owner, and owner tests.
- Repository search confirming removed keys/bridge references if retired.
Confirmed problem
SessionBridgewaits for/api/sessionto returndata.tokenbefore marking migration complete, but the session route returns authentication state and expiry without a token. The compatibility bridge cannot complete as documented.Scope
Acceptance criteria
Required verification