Skip to content

fix(auth): skip unsupported token exchange#11

Merged
dortort merged 1 commit intomainfrom
fix/oauth-skip-token-exchange
Feb 6, 2026
Merged

fix(auth): skip unsupported token exchange#11
dortort merged 1 commit intomainfrom
fix/oauth-skip-token-exchange

Conversation

@dortort
Copy link
Owner

@dortort dortort commented Feb 6, 2026

Summary

Skip the token-exchange grant that was failing. The token exchange to convert ID token to API key is not actually implemented by OpenAI (it was a community proposal).

Changes

  • Use OAuth access_token directly for API calls
  • Remove supportsTokenExchange from constants
  • The OpenAIAdapter already includes chatgpt-account-id header when using OAuth

Test

OAuth redirect works, now API calls should work with the access token.

🤖 Generated with Claude Code

…rectly

The token-exchange grant to convert ID token to API key is not
actually implemented by OpenAI (it was a community proposal, not
official functionality).

Instead, use the OAuth access_token directly for API calls.
The OpenAIAdapter includes chatgpt-account-id header when using OAuth.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dortort dortort merged commit 05ef780 into main Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant