WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@aayush-kapoor
Copy link
Contributor

Background

#10899

We didn't pass the application/json header while making the request when refreshing auth tokens, which broke the flow (we do it while exchanging auth tokens)

Summary

Pass the json header

Manual Verification

  • repro code file was created to simulate the flow of that function and the errors caused by it
  • verified by first failing the test; the patch then fixed it

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)

Related Issues

Fixes #10899

@vercel-ai-sdk vercel-ai-sdk bot added the ai/core label Dec 5, 2025
@aayush-kapoor aayush-kapoor changed the title fix fix(mcp): pass json header for refreshAuth Dec 5, 2025
@aayush-kapoor aayush-kapoor marked this pull request as ready for review December 6, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP Oauth - auth() always returns "redirect" with valid token for GitHub MCP

3 participants