Context
PRs #885–#887 worked around two upstream Better Auth 1.7.x bugs to unblock MCP clients (opencode, Cursor):
When upstream releases include these fixes
- Bump
@better-auth/oauth-provider (and siblings) past the fixed release.
- Delete
patches/@better-auth__oauth-provider.patch and its patchedDependencies entry.
- Delete the pinned "retire the patch" test in
apps/auth/src/oauth.test.ts (explicit native + cursor:// registration).
- Revisit the pinned "explicit web + http loopback → 400" test — if the release fixes #10913, web+loopback may start succeeding; the test failing is the intended signal, not a regression.
- Keep the hook coercion/defaulting: clients that omit
application_type or send Cursor's erroneous web still need it regardless of upstream (MCP spec 2026-07-28 requires clients to send it; several don't).
Sentinel: the pinned tests above fail on the offending bump, pointing here.
Context
PRs #885–#887 worked around two upstream Better Auth 1.7.x bugs to unblock MCP clients (opencode, Cursor):
application_typetonativein the/oauth2/registerbefore-hook,apps/auth/src/cimd-transport.ts).cursor://anysphere.cursor-mcp/oauth/callback. Our workaround:patches/@better-auth__oauth-provider.patch(registered inpnpm-workspace.yamlpatchedDependencies) porting #10956 into the bundled dist.When upstream releases include these fixes
@better-auth/oauth-provider(and siblings) past the fixed release.patches/@better-auth__oauth-provider.patchand itspatchedDependenciesentry.apps/auth/src/oauth.test.ts(explicit native + cursor:// registration).application_typeor send Cursor's erroneouswebstill need it regardless of upstream (MCP spec 2026-07-28 requires clients to send it; several don't).Sentinel: the pinned tests above fail on the offending bump, pointing here.