[PR #7060] [CLOSED] types(client): fix plugin client type inference in createAuthClient #7049

Closed
opened 2026-03-13 13:22:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7060
Author: @MuzzaiyyanHussain
Created: 12/30/2025
Status: Closed

Base: canaryHead: fix/plugin-type-inference


📝 Commits (5)

  • 9371804 types(client): fix plugin client type inference in createAuthClient
  • c3594c2 Merge branch 'canary' into fix/plugin-type-inference
  • b966e69 chore: lint fix
  • 238d2a2 types(client): fix plugin client type inference in createAuthClient
  • abbd1f4 Merge branch 'canary' into fix/plugin-type-inference

📊 Changes

2 files changed (+11 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/client/client.test.ts (+7 -0)
📝 packages/better-auth/src/client/vanilla.ts (+4 -1)

📄 Description

This PR fixes TypeScript inference for client plugins by including
plugin client APIs in the return type of createAuthClient.

  • Type-only change
  • No runtime behavior changes

Summary by cubic

Fixes TypeScript inference for plugin client APIs in createAuthClient so plugin methods are correctly exposed on the returned client type. Type-only change; no runtime behavior.

Written for commit abbd1f4f2c. Summary will update 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/7060 **Author:** [@MuzzaiyyanHussain](https://github.com/MuzzaiyyanHussain) **Created:** 12/30/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/plugin-type-inference` --- ### 📝 Commits (5) - [`9371804`](https://github.com/better-auth/better-auth/commit/9371804c98e97ad80a7ce4a4bcd4ea9fdd1cf146) types(client): fix plugin client type inference in createAuthClient - [`c3594c2`](https://github.com/better-auth/better-auth/commit/c3594c23eea1afaaa2c37f0e7c5fce588bc1a39e) Merge branch 'canary' into fix/plugin-type-inference - [`b966e69`](https://github.com/better-auth/better-auth/commit/b966e690e6e0b0ee9913dd11bc8113734dc50959) chore: lint fix - [`238d2a2`](https://github.com/better-auth/better-auth/commit/238d2a2023c4482413652bae032a5902e34967b6) types(client): fix plugin client type inference in createAuthClient - [`abbd1f4`](https://github.com/better-auth/better-auth/commit/abbd1f4f2c26fdc74540eec24085f52e4c7db5e7) Merge branch 'canary' into fix/plugin-type-inference ### 📊 Changes **2 files changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/client.test.ts` (+7 -0) 📝 `packages/better-auth/src/client/vanilla.ts` (+4 -1) </details> ### 📄 Description This PR fixes TypeScript inference for client plugins by including plugin client APIs in the return type of `createAuthClient`. - Type-only change - No runtime behavior changes <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes TypeScript inference for plugin client APIs in createAuthClient so plugin methods are correctly exposed on the returned client type. Type-only change; no runtime behavior. <sup>Written for commit abbd1f4f2c26fdc74540eec24085f52e4c7db5e7. Summary will update 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 13:22:28 -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#7049