[PR #8448] [MERGED] chore: fix type inference when user and custom session plugins are combined #7981

Closed
opened 2026-03-13 13:55:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: chore/fix-user-inference


📝 Commits (2)

  • 639764b chore(better-auth): fix user type inference when inferred user fields are combined with custom session inference
  • b0aff1a chore(better-auth): test scenario where custom session does not include user or session

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/path-to-object.ts (+26 -1)
📝 packages/better-auth/src/plugins/custom-session/custom-session.test.ts (+78 -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/8448 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 3/6/2026 **Status:** ✅ Merged **Merged:** 3/10/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `chore/fix-user-inference` --- ### 📝 Commits (2) - [`639764b`](https://github.com/better-auth/better-auth/commit/639764b77e260986178f6e05b75af5dd6fd5a3f2) chore(better-auth): fix user type inference when inferred user fields are combined with custom session inference - [`b0aff1a`](https://github.com/better-auth/better-auth/commit/b0aff1a8bae366f82fc83a4100f7e31dd2edda2c) chore(better-auth): test scenario where custom session does not include user or session ### 📊 Changes **2 files changed** (+104 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/path-to-object.ts` (+26 -1) 📝 `packages/better-auth/src/plugins/custom-session/custom-session.test.ts` (+78 -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:55:35 -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#7981