[PR #4361] [MERGED] fix: prevent undefined from passed to adapter in username plugin #5330

Closed
opened 2026-03-13 12:19:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4361
Author: @Kinfe123
Created: 9/2/2025
Status: Merged
Merged: 9/2/2025
Merged by: @Kinfe123

Base: canaryHead: fix/prisma-strict-undefined-checks-username-plugin


📝 Commits (1)

  • 00c74da fix: prevent undefined values from reaching Prisma adapter in username plugin

📊 Changes

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

View changed files

📝 packages/better-auth/src/adapters/create-adapter/index.ts (+3 -1)
📝 packages/better-auth/src/plugins/username/index.ts (+6 -2)

📄 Description

closes #4341
before
Screenshot 2025-09-02 at 2 13 29 PM
after
Screenshot 2025-09-02 at 2 13 36 PM


🔄 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/4361 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 9/2/2025 **Status:** ✅ Merged **Merged:** 9/2/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `canary` ← **Head:** `fix/prisma-strict-undefined-checks-username-plugin` --- ### 📝 Commits (1) - [`00c74da`](https://github.com/better-auth/better-auth/commit/00c74daeea95f9cc757be09e36610a60d9f90e7d) fix: prevent undefined values from reaching Prisma adapter in username plugin ### 📊 Changes **2 files changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/create-adapter/index.ts` (+3 -1) 📝 `packages/better-auth/src/plugins/username/index.ts` (+6 -2) </details> ### 📄 Description closes #4341 before <img width="272" height="167" alt="Screenshot 2025-09-02 at 2 13 29 PM" src="https://github.com/user-attachments/assets/b6cb336e-00c7-477a-a681-a76da8e9fe19" /> after <img width="369" height="20" alt="Screenshot 2025-09-02 at 2 13 36 PM" src="https://github.com/user-attachments/assets/5b19e66f-4c43-4e1d-8a85-a91af0633d37" /> --- <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 12:19:02 -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#5330