[BUG] cli OAuth error: Invalid code. Please make sure the full code was copied

Status Fixed / completed
Reported on v2.1.283
Maintainer reply None cached
Activity 0 comments · opened Sep 25, 2026 · closed Sep 26, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When i try to make a new login from my linux vps, the verification code is always invalid.
Makes no difference if i try to add it in the cli or the browser.

What Should Happen?

The code should be verified and i should be logged in.

Error Messages/Logs

OAuth error: Invalid code. Please make sure the full code was copied

Steps to Reproduce

Run /login and choose the plan auth.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.283 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗