[BUG] OAuth error: timeout of 15000ms exceeded can not login it keeps timout even though I tried token too
Open 💬 22 comments Opened Mar 11, 2026 by caelum0x
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?
It does not login API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or
refresh your existing token."},"request_id":"req_011CYwTjasSQ6xFJ18bMBYyB"} · Please run /login
What Should Happen?
It should login but it keeps timing out
Error Messages/Logs
OAuth error: timeout of 15000ms exceeded
Steps to Reproduce
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.72
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
22 Comments
I got the same issue
Same here
Same here
Same here
Same problem OAuth error: timeout of 15000ms exceeded
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I see this also in my console when I'm on the Authentication Code Copy screen.
Maybe it has something to do with the issue!?
Framing 'https://a.claude.ai/' violates the following Content Security Policy directive: "frame-ancestors https://claude.ai https://.claude.ai https://anthropic.com https://.anthropic.com https://.ant.dev". The request has been blocked.
Same issue on macOS today. OAuth flow is very slow; CLI fails with:
OAuth error: timeout of 15000ms exceededEnvironment:
Notes:
and flushing, resolution works.
auth path.
Repro:
1) claude
2) /login
3) Browser opens, slow load
4) After ~15s CLI errors
Edit: update: the auth page now says
This isn't working right now. You can try again later.same issue
CAN WE NOT HAVE THE DAMNED TOKEN TIMED OUT EVERY FEW HOURS? IS IT REALLY NECESSARY TO DO THIS AND FORCE US TO LOGIN MULTIPLE TIMES A DAY?
I found a workaround for this issue. I used the binary from a previous version (2.1.50), which can be found in ~/.local/share/claude/versions. I logged in using that version, and once the authentication was successful, I was able to switch back and use the latest version (2.1.72) without any problems."
This worked for me, sharing as there is multiple issues open what seem like the same issue
Workaround: Increase OAuth timeout on Windows
The hardcoded 15000ms (15s) OAuth timeout in
cli.jsisn't long enough whenauth.anthropic.comis slow to resolve. Bumping it to 45000ms (45s) fixed login for me.Git Bash
PowerShell
Then run
claude loginagain.Notes
npm updateof claude-code45000higher if needed (e.g.60000for 60s)Thanks for the tip - I managed to log in with 2.1.71
same issue today!!
same on Mac, claude 2.1.76 via homebrew
Same just now
Adding a data point here: I'm based in SAST (UTC+2) and have noticed a consistent pattern where Claude Code sessions are stable throughout my morning, but begin experiencing 401/502 errors reliably in my early-to-mid afternoon — which maps directly to US East Coast morning hours and the broader American peak traffic window.
This pattern predates my current session and appears to have intensified noticeably since the rollout of the extended context window and the Sonnet 4.6 release. My suspicion is that the combination of increased user adoption and heavier per-session compute load (particularly from Claude Code with large context) is creating infrastructure strain during peak hours that manifests as auth token invalidation and upstream gateway failures.
Worth noting: /login as a recovery path is problematic for those of us mid-session, as it frequently causes terminal crashes rather than clean re-authentication.
Happy to provide session logs or timing data if useful for diagnosing the load correlation.
it worked for me after wiping the stored auth and relogin rm -rf ~/.claude
claude auth login
Using
claude auth loginin the terminal worked. Tried this on Mac OS Claude version2.1.77 (Claude Code).Thank you @renavides
I also managed to log-in after changing the version like so,
Install an older version:
```bash
npm install -g @anthropic-ai/claude-code@2.1.50
claude --version
claude auth login (clear the browser cahce, hard refresh)
same issue
Getting the same error. It's not the first time we get such issue. It's a bit odd paying for a service which is unavailable a lot of times...