Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open Beginner friendly
#300 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with packages/cli/src/commands/auth/session-ref.ts and compare its workspace-id check with sameWorkspaceId in packages/cli/src/lib/workspace-id.ts. Exercise the affected auth command with both a bare workspace id and the wksp_-prefixed form; done means either form finds the stored session.

Written by the indexing model from the issue text.

Description

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: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L330

🤖 Generated with Claude Code

Dominant language
TypeScript
Stars
21
Forks
2
Avg merge
13h 3m
Merged PRs (30d)
41

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/prisma-cli

All issues in prisma/prisma-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.