Skip to content

auth commands do not match a workspace id typed with the wksp_ prefix the Console shows #300

Description

@wmadden-electric

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions