claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Claude in Chrome: Authorize button click handler empty, oauth_callback.html missing

Open dankritzer199-creator opened this issue 10 months ago • 3 comments

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?

Claude in Chrome extension's Authorize button does nothing when clicked. The OAuth API call succeeds (returns 200 with valid redirect_uri), but the redirect fails because:

  1. The button's React onClick handler is minified to an empty function: function nv(){}
  2. The oauth_callback.html file is missing from the extension package - accessing chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/oauth_callback.html directly shows "invalid"

Reinstalling the extension (including full Chrome restart) downloads the same broken build.

What Should Happen?

Clicking Authorize should complete the OAuth flow and redirect to oauth_callback.html, which should store the access token and enable the extension.

Error Messages/Logs

Console errors on auth page:
- CSP violation: "Loading the font 'data:font/truetype...' violates Content Security Policy directive: font-src"
- When manually redirecting to callback: ERR_BLOCKED_BY_CLIENT, page shows "invalid"

React inspection showed:
- getEventListeners(button).click[0].listener.toString() returns 'function nv(){}'
- btn[propsKey].onClick exists but calls empty mutation

Network tab shows:
- POST to /api/oauth/authorize returns 200 with valid response:
{"redirect_uri": "chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/oauth_callback.html?code=...&state=..."}

Steps to Reproduce

  1. Install Claude in Chrome extension (ID: fcoeoabgfenejglbffodgkkbkcdhcgfn) from Chrome Web Store
  2. Click extension icon → Sign in
  3. On the OAuth authorization page, click "Authorize"
  4. Observe: Button animates but nothing happens
  5. Open DevTools → Network tab → Click Authorize again
  6. Observe: No network request fires from the button click
  7. In Console, run: getEventListeners(document.querySelectorAll('button')[0]).click[0].listener.toString()
  8. Observe: Returns 'function nv(){}' (empty handler)
  9. Navigate directly to: chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/oauth_callback.html
  10. Observe: Page shows "invalid" - file is missing from extension package

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Chrome latest extension

Platform

Other

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

  • Chrome version: [check chrome://settings/help and paste]
  • Extension version: 1.0.36
  • Tested in incognito with all other extensions disabled - same result
  • "Decline" button works fine, only "Authorize" is broken
  • The OAuth API itself works - manually calling the endpoint returns valid tokens
  • This appears to be a broken build deployed to Chrome Web Store

Note: This bug report was compiled with assistance from Claude (Opus 4.5) during a debugging session. The diagnostic steps (inspecting React internals, checking event listeners, testing manual OAuth flow) were performed collaboratively to identify the root cause.

dankritzer199-creator avatar Jan 12 '26 22:01 dankritzer199-creator

Same issue here, The service worker console logs this error:

Connecting to 'https://platform.claude.com/v1/oauth/token' violates the following Content Security Policy directive: "connect-src 'self' https://api.anthropic.com wss://api.anthropic.com https://claude.ai https://console.anthropic.com https://statsig.com https://*.statsig.com https://api.statsig.com https://featuregates.org https://statsigapi.net https://events.statsigapi.net https://api.statsigcdn.com https://featureassets.org https://assetsconfigcdn.org https://prodregistryv2.org https://cloudflare-dns.com https://beyondwickedmapping.org https://api.segment.io https://*.segment.com https://*.ingest.us.sentry.io https://api.honeycomb.io". The action has been blocked.

lejoe avatar Jan 12 '26 22:01 lejoe

Same issue till 2.1.5

frroyer avatar Jan 12 '26 22:01 frroyer

Same issue in iTerm2

OakGimbap avatar Jan 13 '26 01:01 OakGimbap

issue still exists

Martijnhoffmans avatar Jan 20 '26 16:01 Martijnhoffmans

Same issue here too

vtnorton avatar Jan 25 '26 19:01 vtnorton

I've been experiencing this today... Imagine paying $400 a month and not being able to log in

hechar788 avatar Jan 26 '26 09:01 hechar788

issue still happing now

MabuhayDesignsandCo avatar Jan 28 '26 04:01 MabuhayDesignsandCo

same issue here at the moment..

woodrunner avatar Jan 28 '26 10:01 woodrunner

Any updates on this?

brandonrc avatar Feb 02 '26 15:02 brandonrc

any update ?

khalidshareef1984 avatar Feb 03 '26 07:02 khalidshareef1984

Any updated? Same issue here.

APLunch avatar Feb 07 '26 23:02 APLunch

same issue affecting my team

znas-io avatar Feb 08 '26 05:02 znas-io

same issue affecting my team

I saw some auth/permission blocking when I checked chrome console.

My issue was resolved by adding me as admin in the organization + installing Claude in terminal in addition to Claude VSCode Extension.

APLunch avatar Feb 08 '26 06:02 APLunch

Same issue, but in Safari

ducha-aiki avatar Feb 26 '26 21:02 ducha-aiki

OK, the issue is that URL line Clause code gives you is split by 3 new lines for some reason. I copy-pasted that into text editor, made it 1 line and then URL fully works

ducha-aiki avatar Feb 26 '26 21:02 ducha-aiki

Same issue here, none workarounds above seems to work..

alanceloth avatar Mar 05 '26 12:03 alanceloth

Same issue

rosstex avatar Mar 11 '26 14:03 rosstex

same here

leonardoalz avatar Mar 11 '26 15:03 leonardoalz

same issue

merkoslav avatar Mar 11 '26 16:03 merkoslav

same issue

ramonmarcel avatar Mar 14 '26 03:03 ramonmarcel