claude-code - 💡(How to fix) Fix [BUG] OAuth login fails with “Missing redirect_uri parameter” — Max [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47152Fetched 2026-04-13 05:40:04
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

  1. ERROR: "Invalid OAuth request — Missing redirect_uri parameter"
  • Intermittently: "An error occurred while sending your login link"

Error Messages/Logs

Error 1: "Solicitação OAuth inválida — Parâmetro redirect_uri ausente" ("Invalid OAuth request — Missing redirect_uri parameter") Error 2: "É necessário ter Claude Max ou Pro para conectar ao Claude Code" ("You need Claude Max or Pro to connect to Claude Code") Error 3: "Ocorreu um erro ao enviar seu link de login" ("An error occurred while sending your login link") 12. ERROR: "Invalid OAuth request — Missing redirect_uri parameter"

  • Also tested on Ubuntu 24.04 VPS via SSH — same error
  • Tested on 3 different browsers + incognito mode — same error
  • Deleted ~/.claude and ~/.config/claude-code, reinstalled — same error

Root Cause

Tested on 2 devices (MacBook Air + Ubuntu 24.04 VPS), 3 browsers + incognito, cleared cache/cookies, deleted ~/.claude and ~/.config/claude-code, reinstalled Claude Code, no ANTHROPIC_API_KEY set. Cannot run /doctor or /bug because they require authentication.

Code Example

Error 1: "Solicitação OAuth inválida — Parâmetro redirect_uri ausente" ("Invalid OAuth request — Missing redirect_uri parameter")

Error 2: "É necessário ter Claude Max ou Pro para conectar ao Claude Code" ("You need Claude Max or Pro to connect to Claude Code")

Error 3: "Ocorreu um erro ao enviar seu link de login" ("An error occurred while sending your login link")

Environment:
- Claude Code version: Latest (fresh install April 11, 2026)
- Node.js: v24.14.1
- OS: macOS (MacBook Air) + Ubuntu 24.04 (VPS)
- Account: Claude Max (active)
- Auth method: Email (corporate Microsoft 365 Business)
- ANTHROPIC_API_KEY: not set (confirmed empty)
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code OAuth login fails with "Invalid OAuth request — Missing redirect_uri parameter" after completing the full email verification flow. Max subscription is active and confirmed at claude.ai/settings. Cannot authenticate at all — completely blocked from using Claude Code.

The exact flow:

  1. Run claude in terminal
  2. Press c to copy the OAuth URL
  3. Paste URL in Chrome (already logged into claude.ai with active Max subscription)
  4. Enter email address and click send
  5. Screen changes to ask for verification code
  6. Receive email from Anthropic with a link
  7. Click the link in the same browser — it generates a verification code
  8. Copy the code, go back to the original tab, paste the code
  9. Click submit
  10. ERROR: "Invalid OAuth request — Missing redirect_uri parameter"

Additional errors observed:

  • When browser is NOT logged into claude.ai: "You need Claude Max or Pro to connect to Claude Code" — even though Max is active
  • Intermittently: "An error occurred while sending your login link"

Previously working fine. Broke after session expired, possibly related to April 7-8 authentication incidents on status.claude.com.

Tested on 2 devices (MacBook Air + Ubuntu 24.04 VPS), 3 browsers + incognito, cleared cache/cookies, deleted ~/.claude and ~/.config/claude-code, reinstalled Claude Code, no ANTHROPIC_API_KEY set. Cannot run /doctor or /bug because they require authentication.

Related issues: #19280, #44252, #44257, #44719, #1484

What Should Happen?

After submitting the correct verification code, Claude Code should complete OAuth authentication and start a session using my Max subscription.

Error Messages/Logs

Error 1: "Solicitação OAuth inválida — Parâmetro redirect_uri ausente" ("Invalid OAuth request — Missing redirect_uri parameter")

Error 2: "É necessário ter Claude Max ou Pro para conectar ao Claude Code" ("You need Claude Max or Pro to connect to Claude Code")

Error 3: "Ocorreu um erro ao enviar seu link de login" ("An error occurred while sending your login link")

Environment:
- Claude Code version: Latest (fresh install April 11, 2026)
- Node.js: v24.14.1
- OS: macOS (MacBook Air) + Ubuntu 24.04 (VPS)
- Account: Claude Max (active)
- Auth method: Email (corporate Microsoft 365 Business)
- ANTHROPIC_API_KEY: not set (confirmed empty)

Steps to Reproduce

  1. Run claude in terminal on macOS
  2. Press c to copy the OAuth URL
  3. Open Chrome (already logged into claude.ai with active Max subscription)
  4. Paste the OAuth URL in the browser
  5. Enter email address (corporate Microsoft 365 Business) and click send
  6. Screen changes to ask for a verification code
  7. Receive email from Anthropic with a verification link
  8. Click the link in the same browser — it opens and generates a verification code
  9. Copy the code
  10. Go back to the original tab and paste the code
  11. Click submit
  12. ERROR: "Invalid OAuth request — Missing redirect_uri parameter"

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown — was working before April 7-8, 2026 authentication incidents

Claude Code Version

Latest (fresh install via npm, April 11, 2026)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

  • Also tested on Ubuntu 24.04 VPS via SSH — same error
  • Tested on 3 different browsers + incognito mode — same error
  • No ANTHROPIC_API_KEY set (confirmed empty)
  • Max subscription confirmed active at claude.ai/settings
  • Deleted ~/.claude and ~/.config/claude-code, reinstalled — same error
  • Cannot run /doctor or /bug because they require authentication first
  • This appears to be a server-side OAuth configuration issue, not client-side
  • Related issues: #19280, #44252, #44257, #44719, #1484

extent analysis

TL;DR

The most likely fix is to wait for the Anthropic team to resolve the server-side OAuth configuration issue or provide an updated version of Claude Code that handles the missing redirect_uri parameter.

Guidance

  • Verify that the redirect_uri parameter is being sent correctly in the OAuth request by checking the network requests in the browser's developer tools.
  • Check the related issues (#19280, #44252, #44257, #44719, #1484) for any updates or workarounds.
  • Try using a different authentication method, such as using an ANTHROPIC_API_KEY, if possible.
  • Wait for an update from the Anthropic team regarding the server-side OAuth configuration issue.

Example

No code example is provided as the issue seems to be related to a server-side configuration problem.

Notes

The issue appears to be a server-side problem, and the user has already tried various troubleshooting steps, including reinstalling Claude Code and testing on different devices and browsers.

Recommendation

Apply workaround: Wait for the Anthropic team to resolve the server-side OAuth configuration issue or provide an updated version of Claude Code that handles the missing redirect_uri parameter. This is because the issue seems to be related to a server-side configuration problem, and the user has already tried various troubleshooting steps.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING