[PR #5754] feat: expose additional http methods #14449

Closed
opened 2026-04-13 09:28:48 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5754

State: closed
Merged: Yes


Some plugins (e.g scim) require a complete CRUD to be exposed via REST endpoints. This means, we need to support: GET, POST, PUT, PATCH and DELETE across supported integrations at the very least.

Additionally, the openapi plugin does not currently support rendering anything but GET and POST, so I am also updating it to support the additional methods.


Summary by cubic

Expose PATCH, PUT, and DELETE in Next.js and SolidStart handlers, extend the OpenAPI generator to include these methods, and apply origin checks to mutating requests. Enables plugins like scim to offer full REST CRUD.

  • New Features
    • Next.js and SolidStart handlers now support GET, POST, PATCH, PUT, DELETE.
    • OpenAPI generator adds DELETE, PATCH, and PUT operations and merges with existing path methods to avoid overwrites.
    • Origin check middleware now runs for POST, PATCH, PUT, DELETE; skipped for GET, OPTIONS, HEAD.

Written for commit 5a42690572. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5754 **State:** closed **Merged:** Yes --- Some plugins (e.g `scim`) require a complete CRUD to be exposed via REST endpoints. This means, we need to support: `GET`, `POST`, `PUT`, `PATCH` and `DELETE` across supported integrations at the very least. Additionally, the `openapi` plugin does not currently support rendering anything but `GET` and `POST`, so I am also updating it to support the additional methods. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Expose PATCH, PUT, and DELETE in Next.js and SolidStart handlers, extend the OpenAPI generator to include these methods, and apply origin checks to mutating requests. Enables plugins like scim to offer full REST CRUD. - **New Features** - Next.js and SolidStart handlers now support GET, POST, PATCH, PUT, DELETE. - OpenAPI generator adds DELETE, PATCH, and PUT operations and merges with existing path methods to avoid overwrites. - Origin check middleware now runs for POST, PATCH, PUT, DELETE; skipped for GET, OPTIONS, HEAD. <sup>Written for commit 5a426905723012e89840a34f52846978053eaf6a. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:28:48 -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#14449