[PR #6376] [CLOSED] chore: tiny getSessionFromCtx type improvement #6623

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6376
Author: @ping-maxwell
Created: 11/28/2025
Status: Closed

Base: canaryHead: chore/tiny-getSessionFromCtx-type-improvement


📝 Commits (1)

  • b8f966b chore: tiny getSessionFromCtx type improvement

📊 Changes

1 file changed (+11 additions, -7 deletions)

View changed files

📝 packages/better-auth/src/api/routes/session.ts (+11 -7)

📄 Description

Makes the result types look cleaner when it's prettifiedDeep


Summary by cubic

Make getSessionFromCtx return types cleaner and easier to read. U/S generics now default to undefined, and PrettifyDeep is applied to the merged User/Session types; no runtime changes.

Written for commit b8f966be0a. Summary will update automatically 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/6376 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 11/28/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `chore/tiny-getSessionFromCtx-type-improvement` --- ### 📝 Commits (1) - [`b8f966b`](https://github.com/better-auth/better-auth/commit/b8f966be0a217bb2542ee009ab152c78413a2e14) chore: tiny `getSessionFromCtx` type improvement ### 📊 Changes **1 file changed** (+11 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/session.ts` (+11 -7) </details> ### 📄 Description Makes the result types look cleaner when it's prettifiedDeep <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Make getSessionFromCtx return types cleaner and easier to read. U/S generics now default to undefined, and PrettifyDeep is applied to the merged User/Session types; no runtime changes. <sup>Written for commit b8f966be0a217bb2542ee009ab152c78413a2e14. Summary will update automatically 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:05:55 -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#6623