anthropics / anthropics/claude-code
[BUG] Windows CLI Auth Error - OAuth Session Expires Before Code Can Be Pasted
- Lenguaje dominante
- Python
- Estrellas
- 145k
- Forks
- 23.1k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
### Preflight Checklist
- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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
```shell
Auth error.
```
### Steps to Reproduce
1. In a native Windows project directory, run claude auth login.
2. Chrome opens; successfully log into Claude Pro and hit Authorize.
3. 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_
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Reproduce on native Windows in PowerShell by running `claude auth login` and completing the browser authorization flow. Start by finding the CLI auth login/OAuth callback handling and any Windows-specific process or timeout behavior. Done means the code can be pasted and login completes successfully instead of showing `Auth error.`
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- powershell, python
- Área
- authentication, cli
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 52/100