[BUG]
Resolved 💬 3 comments Opened Apr 6, 2026 by oliviermeunier Closed Apr 10, 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?
OAuth login fails with a 500 Internal Server Error on the authorization page. The browser opens the Claude authorization page, but after clicking Authorize, the page returns a 500 error and Claude Code never completes the login flow.
Environment
- Claude Code version: 2.1.92
- Platform: Windows (PowerShell)
- Plan: Claude Max
- Terminal: PowerShell
What I've Tried
- Updated to latest version (2.1.92)
- Deleted
%LOCALAPPDATA%\Claude - Deleted
%LOCALAPPDATA%\claude-cli-nodejs - Deleted
~\.claude.jsonand~\.claude\ - Retried multiple times across different PowerShell sessions
- Maximized terminal window to avoid token line-wrapping
- Manually copying the OAuth URL and pasting into browser
None of the above resolved the issue. The 500 error persists on every attempt.
What Should Happen?
Successful OAuth authentication and access to Claude Code using my Claude Max subscription.
Error Messages/Logs
Steps to Reproduce
- Run
claudein PowerShell - Select "Sign in with Claude.ai subscription"
- Browser opens the Claude authorization page
- Click Authorize
- Page shows: Authorization failed — Internal server error
- Claude Code never completes authentication
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.92
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗