#1913

fix(auth): redirect browser MCP OAuth requests

Openchbndrhnnswants to merge intofrom

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)