4 people reported

All time, since Sep 25, including 2 thumbs-up on GitHub.

OAuth login rejects pasted code

“OAuth authentication fails in both the official Claude Code VS Code extension and Claude Code CLI on macOS.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/1392/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

OAuth login rejects pasted code as invalid. After authorizing in the browser and pasting the code into /login, the CLI rejects it; VS Code extension returns status code 400.

Is this your bug?

File my report
Where
OAuth login
Error text
OAuth error: Invalid code. Please make sure the full code was copiedPasted in 2 reports
Versions
2.1.283
Platforms
Linux, macOS
How bad
Stops work: a core feature can't be used.

Not quite your bug?

  1. Sign-in fails after CAPTCHA4 people

Original reports2, newest first

  1. OAuth login fails with status code 400 in VS Code and "Invalid code" in CLI on macOS#97494
  2. cli OAuth error: Invalid code. Please make sure the full code was copied#97307

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.