[PR #3026] [MERGED] fix(get-session): missing null type on /get-session #21515

Closed
opened 2026-04-15 20:24:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3026
Author: @ping-maxwell
Created: 6/14/2025
Status: Merged
Merged: 6/14/2025
Merged by: @Bekacru

Base: mainHead: fix/get-session-missing-null-on-throw


📝 Commits (2)

  • 03caab0 fix(get-session): missing null type on /get-session
  • 3785ece chore: fix type errors

📊 Changes

6 files changed (+15 additions, -15 deletions)

View changed files

📝 packages/better-auth/src/adapters/kysely-adapter/test/state.txt (+1 -1)
📝 packages/better-auth/src/adapters/prisma-adapter/test/state.txt (+1 -1)
📝 packages/better-auth/src/api/routes/update-user.test.ts (+7 -7)
📝 packages/better-auth/src/client/path-to-object.ts (+1 -1)
📝 packages/better-auth/src/db/db.test.ts (+2 -2)
📝 packages/better-auth/src/plugins/phone-number/phone-number.test.ts (+3 -3)

📄 Description

When there isn't an active session, null is returned on the /get-session endpoint. This was missing in types.


🔄 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/3026 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 6/14/2025 **Status:** ✅ Merged **Merged:** 6/14/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/get-session-missing-null-on-throw` --- ### 📝 Commits (2) - [`03caab0`](https://github.com/better-auth/better-auth/commit/03caab00ca4bc3dcd10991503b29a8c414854d45) fix(get-session): missing `null` type on /get-session - [`3785ece`](https://github.com/better-auth/better-auth/commit/3785ecea79ee1679889675df30ff0d6c88e52b92) chore: fix type errors ### 📊 Changes **6 files changed** (+15 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/kysely-adapter/test/state.txt` (+1 -1) 📝 `packages/better-auth/src/adapters/prisma-adapter/test/state.txt` (+1 -1) 📝 `packages/better-auth/src/api/routes/update-user.test.ts` (+7 -7) 📝 `packages/better-auth/src/client/path-to-object.ts` (+1 -1) 📝 `packages/better-auth/src/db/db.test.ts` (+2 -2) 📝 `packages/better-auth/src/plugins/phone-number/phone-number.test.ts` (+3 -3) </details> ### 📄 Description When there isn't an active session, `null` is returned on the `/get-session` endpoint. This was missing in types. --- <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-15 20:24:57 -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#21515