[BUG] Claude Code OAuth login times out after browser authorization and ends in internal server error
Resolved 💬 44 comments Opened Apr 6, 2026 by RashadKulam Closed Apr 6, 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 log in to Claude Code from the terminal, it opens the browser authorization page to connect Claude Code to my Claude chat account.
After I click Authorize, the button spins briefly, but the authorization does not complete. Instead, the browser ends on an "Internal server error" page.
At the same time, the terminal shows:
OAuth error: timeout of 15000ms exceeded
Because of this, I’m unable to complete authentication and cannot use Claude Code.
What Should Happen?
After clicking Authorize, the browser should complete the OAuth flow and Claude Code should finish logging in successfully in the terminal.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code in the terminal
- Start the login flow
- Browser opens the Claude authorization page
- Click Authorize
- The button spins briefly
- Browser redirects to an Internal server error page
- Terminal shows: "OAuth error: timeout of 15000ms exceeded"
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.92
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
44 Comments
same issue over here. i can't use claude right now.
+1
same here
I m just waiting for someone on their team to turn on incident on status page 😄
Same - can't authenticate via VS Code.
Broken. Great job releasing this update.
Same problem here. Started this morning. Was working without issue last night.
Max user. MacOS headless.
v2.1.92+1
Same here.
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
+1
OAuth error: Request failed with status code 500
+1
+1
Same problem here on my local vscode.
tengo el mismo inconveniente.
same problem
+1
+1
+1
+1 (I'm a Pro user)
+1
Claude (web) wrote this:
This is platform-agnostic and broader than Claude Code — I can reproduce it on Linux, and it also affects plain browser login to claude.ai entirely.
When trying to log in via a fresh browser session (no Claude Code involved), I get:
This means the OAuth scope that Anthropic's own login flow is requesting is not recognized by their own OAuth server. It blocks login completely, regardless of OS or client.
Timeline I observed today:
This is a server-side issue with the OAuth scope definition, not a client-side or OS-specific bug.
Getting same error on Ubuntu 24.04 LTS
yea its broken for me too, i cannot log in:
OAuth error: timeout of 15000ms exceeded
Max User, Claude Code v2.1.87, Mac
+1
+1
+1. Windows 11, Claude Code v2.1.92, Max subscriber. Same timeout of 15000ms exceeded on both /login and claude auth login. Started today.
Update: Also tried:
claude install (native installer re-registration) — recognizes my account but still demands OAuth
Downgraded to v2.1.80 via npm — same OAuth requirement
Have 4 claude binaries on PATH (.local/bin, npm, WinGet) — none bypass OAuth
API key is set and recognized (ANTHROPIC_API_KEY in env, header shows "API Usage Billing") but Claude Code still requires OAuth login to function
Confirms this is entirely server-side. The client detects the API key and my account but refuses to operate without a successful OAuth handshake.
+1, Max subscriber, On Windows 11, WSL and Linux VPS, Claude code VScode plugin and CLI. Started today
+1
+1
They announced that they were having problems with connection: https://status.claude.com/
+1 Max subscriber, macOS, Claude code VScode plugin + Cursor plugin + terminal
Partial fix for me to still use Claude CLI was to install this version :
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.66(Linux)+1
+1
OAuth error: timeout of 15000ms exceeded
Same issue here, just stopped working and re-authentication request started in the middle of vs studio session.
I have the same error. Tried with both the code mechanism (gets 500 error) or using the browser (multiple authorize buttons and eventual time out by client.)
Hi friends! Sorry for the trouble and thank you for your reports. We're are working on this issue now. You can follow along here
Better get that fixed quick. I'm starting to realize I enjoy programming more without claude code...
+1
I'm experiencing the same issue. Here are my repro steps / what I've tried.
Claude Code OAuth 500 Error — Token Exchange Fails After Successful Browser Auth
Environment
Claude Code: v2.1.92
macOS: Sonoma 14.1.1
Shell: zsh (iTerm2)
Browser: Safari (also tested Arc)
Plan: Claude Max
Summary
OAuth login consistently fails with a 500 error during the token exchange step, even though the browser side completes successfully (platform.claude.ai shows "You're all set up for Claude Code. You can now close this window.").
Steps to reproduce
Run claude in terminal — CLI reports expired OAuth token (401)
Run /login inside Claude Code session
Browser opens platform.claude.ai, user authenticates via Google successfully
Browser shows success page: "You're all set up for Claude Code. You can now close this window."
CLI returns: OAuth error: Request failed with status code 500
What I tried
Tested in both Arc and Safari — same result
Deleted all Claude-related credentials from macOS Keychain Access (3 entries)
Confirmed no ~/.claude/auth.json exists
Reproduced consistently across multiple attempts
claude.ai web login works fine in both browsers
Anthropic status page shows all systems operational
Expected behavior
CLI captures the OAuth callback and stores credentials after browser auth completes.
Actual behavior
CLI returns 500 despite browser showing successful auth. No auth.json is created. Often times the OAuth path fails due to a 15000ms time out.
Resolved on my end. OAuth/login is now completing successfully.
Previously, the browser auth step was failing with an internal server error and Claude Code returned:
OAuth error: timeout of 15000ms exceededClosing as transient/resolved.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.