Skip to content

fix(auth): redirect browser MCP OAuth requests - #1913

Open
chbndrhnns wants to merge 2 commits into
oblien:mainfrom
chbndrhnns:fix/mcp-oauth-browser-redirect
Open

chbndrhnns wants to merge 2 commits into
oblien:mainfrom
chbndrhnns:fix/mcp-oauth-browser-redirect

Conversation

@chbndrhnns

Copy link
Copy Markdown
Contributor

Summary

  • convert Better Auth JSON redirect responses to HTTP 302 for browser navigations
  • preserve JSON behavior for MCP/API clients
  • add a regression test covering browser navigation headers

Closes the related OAuth browser-flow issue.

Verification

bunx vitest run apps/api/test/lib/auth-mcp-provider.test.ts (28 passed)

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