[PR #6090] [MERGED] chore: upgrade to better-call to 1.2.28 #6437

Closed
opened 2026-03-13 12:59:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6090
Author: @Bekacru
Created: 11/19/2025
Status: Merged
Merged: 11/19/2025
Merged by: @Bekacru

Base: canaryHead: feat/support-contentype


📝 Commits (9)

  • 449eaed chore: move content-type check to better-call
  • 12839e3 chore: revert local linking
  • 7ff6e57 remove override
  • 407fecc update better-call
  • 2c0a75e update
  • cac655d feat: add allowed media types for OAuth2 and SSO callbacks
  • 1c13df0 doc
  • 549b660 chore: update better-call version from beta to stable 1.0.28
  • 9d271d6 chore: update test

📊 Changes

11 files changed (+40 additions, -89 deletions)

View changed files

📝 docs/content/docs/reference/security.mdx (+3 -3)
📝 packages/better-auth/src/api/index.ts (+1 -0)
📝 packages/better-auth/src/api/middlewares/origin-check.test.ts (+1 -35)
📝 packages/better-auth/src/api/middlewares/origin-check.ts (+0 -36)
📝 packages/better-auth/src/api/routes/callback.ts (+7 -1)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+4 -0)
📝 packages/better-auth/src/plugins/mcp/index.ts (+4 -0)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+4 -0)
📝 packages/sso/src/routes/sso.ts (+4 -0)
📝 pnpm-lock.yaml (+11 -13)
📝 pnpm-workspace.yaml (+1 -1)

📄 Description

https://github.com/Bekacru/better-call/pull/72


Summary by cubic

Moved content-type validation into better-call and set explicit allowedMediaTypes per route. Defaults to JSON, with urlencoded enabled for OAuth2 and SSO callbacks (e.g., Apple).

  • Refactors

    • Removed simple request/content-type checks from origin-check middleware.
    • Set router allowedMediaTypes to ["application/json"].
    • Allowed ["application/x-www-form-urlencoded", "application/json"] for OAuth2 and SSO callbacks.
  • Dependencies

    • Upgraded better-call to 1.0.28.

Written for commit 9d271d6d78. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6090 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/19/2025 **Status:** ✅ Merged **Merged:** 11/19/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/support-contentype` --- ### 📝 Commits (9) - [`449eaed`](https://github.com/better-auth/better-auth/commit/449eaed605483fd15fdc52af456b64582ab2eb9a) chore: move content-type check to better-call - [`12839e3`](https://github.com/better-auth/better-auth/commit/12839e3bef7d43dca59a96c35f5615612e87af00) chore: revert local linking - [`7ff6e57`](https://github.com/better-auth/better-auth/commit/7ff6e572a13f634324d805b815aa15d566093494) remove override - [`407fecc`](https://github.com/better-auth/better-auth/commit/407feccc25aed8c03c673f168b38a7aff202b36f) update better-call - [`2c0a75e`](https://github.com/better-auth/better-auth/commit/2c0a75e6ff2c679f4533e79b762f0837f6b5ab4f) update - [`cac655d`](https://github.com/better-auth/better-auth/commit/cac655d1a443915a83291c4d99a2324c169f3864) feat: add allowed media types for OAuth2 and SSO callbacks - [`1c13df0`](https://github.com/better-auth/better-auth/commit/1c13df00ce9b0be77f80efba60d71075bfd8ebe9) doc - [`549b660`](https://github.com/better-auth/better-auth/commit/549b660634ae3347db8472fb2b35f7f6acc10e48) chore: update better-call version from beta to stable 1.0.28 - [`9d271d6`](https://github.com/better-auth/better-auth/commit/9d271d6d78c571507f1f304699de870a05110c1a) chore: update test ### 📊 Changes **11 files changed** (+40 additions, -89 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/reference/security.mdx` (+3 -3) 📝 `packages/better-auth/src/api/index.ts` (+1 -0) 📝 `packages/better-auth/src/api/middlewares/origin-check.test.ts` (+1 -35) 📝 `packages/better-auth/src/api/middlewares/origin-check.ts` (+0 -36) 📝 `packages/better-auth/src/api/routes/callback.ts` (+7 -1) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+4 -0) 📝 `packages/better-auth/src/plugins/mcp/index.ts` (+4 -0) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+4 -0) 📝 `packages/sso/src/routes/sso.ts` (+4 -0) 📝 `pnpm-lock.yaml` (+11 -13) 📝 `pnpm-workspace.yaml` (+1 -1) </details> ### 📄 Description https://github.com/Bekacru/better-call/pull/72 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Moved content-type validation into better-call and set explicit allowedMediaTypes per route. Defaults to JSON, with urlencoded enabled for OAuth2 and SSO callbacks (e.g., Apple). - **Refactors** - Removed simple request/content-type checks from origin-check middleware. - Set router allowedMediaTypes to ["application/json"]. - Allowed ["application/x-www-form-urlencoded", "application/json"] for OAuth2 and SSO callbacks. - **Dependencies** - Upgraded better-call to 1.0.28. <sup>Written for commit 9d271d6d78c571507f1f304699de870a05110c1a. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:59:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#6437