packages/cli/src/commands/auth/session-ref.ts compares the typed workspace id with ===. Stored sessions hold the bare id from the token claim, while the Console and the API show wksp_-prefixed ids, so an auth command given a wksp_ id finds no session. A sameWorkspaceId helper already exists in packages/cli/src/lib/workspace-id.ts; this code does not use it.
Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out:
|
- **`auth`'s workspace-ref lookup rejects the `wksp_`-prefixed id the |
🤖 Generated with Claude Code
packages/cli/src/commands/auth/session-ref.tscompares the typed workspace id with===. Stored sessions hold the bare id from the token claim, while the Console and the API showwksp_-prefixed ids, so anauthcommand given awksp_id finds no session. AsameWorkspaceIdhelper already exists inpackages/cli/src/lib/workspace-id.ts; this code does not use it.Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out:
prisma-cli/.drive/projects/prisma-cli-v8/deferred.md
Line 330 in 4356b36
🤖 Generated with Claude Code