OAuth login fails with 'Authorization failed - Internal server error'
Resolved 💬 4 comments Opened Mar 11, 2026 by Mister-ams Closed Apr 9, 2026
Description
OAuth login flow fails with "Authorization failed - Internal server error" when attempting to authenticate Claude Code CLI.
Environment
- Claude Code version: 2.1.72
- OS: Windows 11 Pro 10.0.26200
- Shell: bash
Steps to Reproduce
- Run
claudein terminal - OAuth URL is generated and opened in browser
- The authorization page at
claude.ai/oauth/authorizeeither:
- Fails to load intermittently, or
- Loads but returns "Authorization failed - Internal server error" (see screenshot below)
- The CLI times out waiting for the auth code
Screenshot
!Authorization failed - Internal server error
The error page shows:
- "Authorization failed"
- "Internal server error"
- A "Try again" button (which does not resolve the issue)
Additional Context
- Network connectivity to
claude.aiandplatform.claude.comis confirmed working - DNS resolution is functional
- This appears to be a server-side issue, not a client-side configuration problem
- Retrying multiple times over several minutes does not resolve the issue
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗