[PR #9017] [MERGED] fix(api): restore getSession accessibility in generic Auth<O> context #16619

Closed
opened 2026-04-13 10:36:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/9017
Author: @bytaesu
Created: 4/7/2026
Status: Merged
Merged: 4/8/2026
Merged by: @gustavovalverde

Base: mainHead: 2026-04-08/fix/generic-auth-get-session


📝 Commits (4)

  • edfb3cf fix(api): restore getSession accessibility in generic Auth context
  • d8357ab chore: changeset
  • 9b234f3 fix(api): use OverrideMerge to prevent base type leaking on plugin override
  • c425eff Merge branch 'main' into 2026-04-08/fix/generic-auth-get-session

📊 Changes

4 files changed (+68 additions, -4 deletions)

View changed files

.changeset/pr-9017.md (+5 -0)
📝 packages/better-auth/src/api/index.ts (+2 -3)
📝 packages/better-auth/src/types/helper.ts (+16 -0)
📝 packages/better-auth/src/types/types.test.ts (+45 -1)

📄 Description

This is an unnecessary change for downstream


🔄 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/9017 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 4/7/2026 **Status:** ✅ Merged **Merged:** 4/8/2026 **Merged by:** [@gustavovalverde](https://github.com/gustavovalverde) **Base:** `main` ← **Head:** `2026-04-08/fix/generic-auth-get-session` --- ### 📝 Commits (4) - [`edfb3cf`](https://github.com/better-auth/better-auth/commit/edfb3cfc091b25f976f23e14cfaad632577b0693) fix(api): restore getSession accessibility in generic Auth<O> context - [`d8357ab`](https://github.com/better-auth/better-auth/commit/d8357ab83b48262bffab76ce758946dadca70f1d) chore: changeset - [`9b234f3`](https://github.com/better-auth/better-auth/commit/9b234f38ffaead09e824c63e8f6d1997951b843e) fix(api): use OverrideMerge to prevent base type leaking on plugin override - [`c425eff`](https://github.com/better-auth/better-auth/commit/c425eff42bfaa6f402c89f83c99deb221cbc023a) Merge branch 'main' into 2026-04-08/fix/generic-auth-get-session ### 📊 Changes **4 files changed** (+68 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/pr-9017.md` (+5 -0) 📝 `packages/better-auth/src/api/index.ts` (+2 -3) 📝 `packages/better-auth/src/types/helper.ts` (+16 -0) 📝 `packages/better-auth/src/types/types.test.ts` (+45 -1) </details> ### 📄 Description This is an unnecessary change for downstream --- <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-04-13 10:36:45 -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#16619