[BUG] OAuth tokens not passed to API - "has Authorization header: false
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?
Title: OAuth tokens not passed to API - "has Authorization header: false"
Environment:
- Extension version: 2.1.29
- OS: Windows
- Account: Max plan subscriber
Issue:
OAuth login succeeds and tokens are saved to ~/.claude/.credentials.json,
but the Authorization header is NOT being included in API requests.
Debug log shows:
[API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
Also seeing: ReferenceError: Bun is not defined
Expected: OAuth access token should be passed in Authorization header
Actual: Authorization header is false/missing
What Should Happen?
i have purchased max plan , it not authenticating my subcription in VS code extension
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Install Claude Code VS Code extension v2.1.29 on Windows
- Login via OAuth with claude.ai account (Max plan)
- Login succeeds, tokens saved to ~/.claude/.credentials.json
- Try to use extension - fails with 401 / "Not authenticated"
Expected: OAuth access token should be passed in Authorization header
Actual: Authorization header is missing from requests
Workaround found: Manually setting subscriptionType: "max" in credentials file
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.1.29
Platform
Other
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗