[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

  1. Open Claude Code in the terminal
  2. Start the login flow
  3. Browser opens the Claude authorization page
  4. Click Authorize
  5. The button spins briefly
  6. Browser redirects to an Internal server error page
  7. 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_

View original on GitHub ↗

44 Comments

doasfrancisco · 3 months ago

same issue over here. i can't use claude right now.

WhitleyStriber · 3 months ago

+1

Areafo · 3 months ago

same here

Cupuycblack · 3 months ago

I m just waiting for someone on their team to turn on incident on status page 😄

triviumbot · 3 months ago

Same - can't authenticate via VS Code.

MMEurope · 3 months ago

Broken. Great job releasing this update.

gooselord-0 · 3 months ago

Same problem here. Started this morning. Was working without issue last night.

Max user. MacOS headless. v2.1.92

T3jv1l · 3 months ago

+1

bgdnandrew · 3 months ago

Same here.

github-actions[bot] · 3 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/33270
  2. https://github.com/anthropics/claude-code/issues/33226
  3. https://github.com/anthropics/claude-code/issues/33214

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

williamdarkocode · 3 months ago

+1

jkmesches · 3 months ago

OAuth error: Request failed with status code 500

1sbarker · 3 months ago

+1

aj-sketch-1 · 3 months ago

+1

kyoon-mit · 3 months ago

Same problem here on my local vscode.

wgaibor · 3 months ago

tengo el mismo inconveniente.

SaricKoding · 3 months ago

same problem

abrahammella · 3 months ago

+1

jimchen-crypto · 3 months ago

+1

Deascenh · 3 months ago

+1

sebvasquez91 · 3 months ago

+1 (I'm a Pro user)

ChinmayKhachane · 3 months ago

+1

Gunther-Schulz · 3 months ago

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:

Invalid OAuth Request Unknown scope: user:file_upload

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:

  1. Claude Code CLI login → browser shows "You're all set" but CLI gets OAuth error 500 / 401
  2. Fresh browser login to claude.ai → "Invalid OAuth Request: Unknown scope: user:file_upload"
  3. The Claude Code login page itself stopped loading entirely

This is a server-side issue with the OAuth scope definition, not a client-side or OS-specific bug.

Brunaldo · 3 months ago

Getting same error on Ubuntu 24.04 LTS

sbenuzillo-oss · 3 months ago

yea its broken for me too, i cannot log in:

OAuth error: timeout of 15000ms exceeded

Max User, Claude Code v2.1.87, Mac

jasvictor · 3 months ago

+1

Janxmac · 3 months ago

+1

amyadams89 · 3 months ago

+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.

exusiaiwei · 3 months ago

+1, Max subscriber, On Windows 11, WSL and Linux VPS, Claude code VScode plugin and CLI. Started today

jasonwhite123 · 3 months ago

+1

gfxjef · 3 months ago

+1

T3jv1l · 3 months ago

They announced that they were having problems with connection: https://status.claude.com/

decocode · 3 months ago

+1 Max subscriber, macOS, Claude code VScode plugin + Cursor plugin + terminal

T3jv1l · 3 months ago

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)

dtop13 · 3 months ago

+1

ynzsiweij · 3 months ago

+1
OAuth error: timeout of 15000ms exceeded

markdbodman · 3 months ago

Same issue here, just stopped working and re-authentication request started in the middle of vs studio session.

bjvetter · 3 months ago

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.)

notitatall · 3 months ago

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

turtlehat · 3 months ago

Better get that fixed quick. I'm starting to realize I enjoy programming more without claude code...

williamdarkocode · 3 months ago

+1

erik-erik-erik · 3 months ago

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.

RashadKulam · 3 months ago

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 exceeded

Closing as transient/resolved.

github-actions[bot] · 3 months ago

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.