[PR #8466] [MERGED] chore: add method type constraints and ensure method is set #7995

Closed
opened 2026-03-13 13:56:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8466
Author: @himself65
Created: 3/6/2026
Status: Merged
Merged: 3/7/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/03/06/type


📝 Commits (7)

  • a0198d3 chore: add method type constraints and ensure method is set
  • 63e412a fix(auth): update type inference for plugin endpoints and normalize methods
  • b29fe2f fix: lint
  • 79d19d0 fix: improved type check
  • bce19bb sec try
  • ee27b4c sec try
  • 8165e1d third try

📊 Changes

8 files changed (+263 additions, -61 deletions)

View changed files

📝 packages/better-auth/src/api/index.ts (+2 -1)
📝 packages/better-auth/src/client/path-to-object.ts (+1 -1)
📝 packages/better-auth/src/client/types.ts (+17 -14)
📝 packages/better-auth/src/plugins/custom-session/index.ts (+1 -0)
📝 packages/core/src/api/index.ts (+12 -6)
📝 pnpm-lock.yaml (+20 -38)
📝 pnpm-workspace.yaml (+1 -1)
test/unit/types/endpoint-method.test.ts (+209 -0)

📄 Description

No description provided


🔄 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/8466 **Author:** [@himself65](https://github.com/himself65) **Created:** 3/6/2026 **Status:** ✅ Merged **Merged:** 3/7/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/03/06/type` --- ### 📝 Commits (7) - [`a0198d3`](https://github.com/better-auth/better-auth/commit/a0198d351838b3f5dde7ff9cd75eedc7aa6b7ffa) chore: add method type constraints and ensure method is set - [`63e412a`](https://github.com/better-auth/better-auth/commit/63e412afb2d0b09fe6fc065afbff0b9f447240d5) fix(auth): update type inference for plugin endpoints and normalize methods - [`b29fe2f`](https://github.com/better-auth/better-auth/commit/b29fe2f864bad55ff804436a60846bb508dadc57) fix: lint - [`79d19d0`](https://github.com/better-auth/better-auth/commit/79d19d047e3f4b260fcbc1c802cde3c1977516a1) fix: improved type check - [`bce19bb`](https://github.com/better-auth/better-auth/commit/bce19bb4541f05fb161b2bc7c451e6969a3f5eac) sec try - [`ee27b4c`](https://github.com/better-auth/better-auth/commit/ee27b4cc15ab01f10b0a978473208e49ade4fb3c) sec try - [`8165e1d`](https://github.com/better-auth/better-auth/commit/8165e1d4d99f47a0f76741707f8c69e4d8feb497) third try ### 📊 Changes **8 files changed** (+263 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/index.ts` (+2 -1) 📝 `packages/better-auth/src/client/path-to-object.ts` (+1 -1) 📝 `packages/better-auth/src/client/types.ts` (+17 -14) 📝 `packages/better-auth/src/plugins/custom-session/index.ts` (+1 -0) 📝 `packages/core/src/api/index.ts` (+12 -6) 📝 `pnpm-lock.yaml` (+20 -38) 📝 `pnpm-workspace.yaml` (+1 -1) ➕ `test/unit/types/endpoint-method.test.ts` (+209 -0) </details> ### 📄 Description _No description provided_ --- <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 13:56:06 -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#7995