[PR #6418] [MERGED] fix: return null early if userid isn't defined #14899

Closed
opened 2026-04-13 09:41:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6418
Author: @Bekacru
Created: 11/30/2025
Status: Merged
Merged: 11/30/2025
Merged by: @Bekacru

Base: canaryHead: fix/admin-userId


📝 Commits (3)

📊 Changes

3 files changed (+5 additions, -2 deletions)

View changed files

📝 docs/components/theme-toggler.tsx (+3 -2)
📝 packages/better-auth/src/db/internal-adapter.ts (+1 -0)
📝 packages/better-auth/src/plugins/open-api/generator.ts (+1 -0)

📄 Description

Summary by cubic

Return null early in findUserById when userId is missing, and add date-time format for date fields in the OpenAPI generator.

Written for commit 631e41a249. 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/6418 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/30/2025 **Status:** ✅ Merged **Merged:** 11/30/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/admin-userId` --- ### 📝 Commits (3) - [`71e2664`](https://github.com/better-auth/better-auth/commit/71e26648a2560c352f326ae5ef7f852cb31b3639) fix: return null early if userid isn't defined - [`3094100`](https://github.com/better-auth/better-auth/commit/3094100170a44916128a8aedb8f9bcebadbc6fc3) update theme - [`631e41a`](https://github.com/better-auth/better-auth/commit/631e41a24918271778888f9f749a04b92183554d) add field type ### 📊 Changes **3 files changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/theme-toggler.tsx` (+3 -2) 📝 `packages/better-auth/src/db/internal-adapter.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/open-api/generator.ts` (+1 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Return null early in findUserById when userId is missing, and add date-time format for date fields in the OpenAPI generator. <sup>Written for commit 631e41a24918271778888f9f749a04b92183554d. 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-04-13 09:41:32 -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#14899