[PR #1177] [MERGED] Bug: Database hooks merge issue with plugin #20572

Closed
opened 2026-04-15 19:47:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1177
Author: @kzlar
Created: 1/10/2025
Status: Merged
Merged: 1/13/2025
Merged by: @Bekacru

Base: mainHead: bug/plugin-hook-merge


📝 Commits (1)

  • 5e8cd24 Bug: Database hooks merge issue with plugin

📊 Changes

2 files changed (+70 additions, -27 deletions)

View changed files

📝 packages/better-auth/src/db/internal-adapter.test.ts (+66 -24)
📝 packages/better-auth/src/init.ts (+4 -3)

📄 Description

  • Fixed a bug with the way plugin options are merged, which caused incorrect merging of database hooks

🔄 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/1177 **Author:** [@kzlar](https://github.com/kzlar) **Created:** 1/10/2025 **Status:** ✅ Merged **Merged:** 1/13/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `bug/plugin-hook-merge` --- ### 📝 Commits (1) - [`5e8cd24`](https://github.com/better-auth/better-auth/commit/5e8cd2498892aa639a2d2b27e3d945d31c840591) Bug: Database hooks merge issue with plugin ### 📊 Changes **2 files changed** (+70 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/internal-adapter.test.ts` (+66 -24) 📝 `packages/better-auth/src/init.ts` (+4 -3) </details> ### 📄 Description - Fixed a bug with the way plugin options are merged, which caused incorrect merging of database hooks --- <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 19:47:15 -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#20572