[BUG] Windows CLI Auth Error - OAuth Session Expires Before Code Can Be Pasted
Status Open
Maintainer reply None cached
Activity 0 comments · opened Sep 7, 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?
I am in my local file and I tried to log in to Claude. I have already updated the versions and done .gitignore. But when I log in, Claude goes to Chrome and I authorize it. However, before and after I copy the Authentication Code, it displays an "Auth Error" which is why I can't paste the code there. Sometimes I am able to paste it quickly, but it still throws an "Auth Error" anyway.
What Should Happen?
Login Successfully!
Error Messages/Logs
Auth error.
Steps to Reproduce
- In a native Windows project directory, run claude auth login.
- Chrome opens; successfully log into Claude Pro and hit Authorize.
- Observe that PowerShell has already crashed with an Auth Error before or during the exact moment you copy-paste the verification code.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
v2.1.261
Claude Code Version
v2.1.260 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_