[PR #2342] [CLOSED] Add findUser option #4270

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2342
Author: @PodkopovP
Created: 4/17/2025
Status: Closed

Base: mainHead: main


📝 Commits (4)

  • ae32eb1 fix: add context parameter to findUserByEmail calls, exposed custom findUser option
  • 007f4d0 Merge branch 'better-auth:main' into main
  • 71b91b5 fix: update findUserByEmail call to use an empty object for options and document custom user finding logic
  • 536f4f0 fix: update findUserByEmail call to use an empty object for options and document custom user finding logic

📊 Changes

12 files changed (+39 additions, -26 deletions)

View changed files

📝 packages/better-auth/src/api/routes/email-verification.ts (+2 -2)
📝 packages/better-auth/src/api/routes/forget-password.ts (+1 -1)
📝 packages/better-auth/src/api/routes/sign-in.ts (+1 -1)
📝 packages/better-auth/src/api/routes/sign-up.ts (+1 -1)
📝 packages/better-auth/src/api/routes/update-user.ts (+2 -2)
📝 packages/better-auth/src/db/internal-adapter.ts (+16 -10)
📝 packages/better-auth/src/plugins/admin/admin.ts (+1 -1)
📝 packages/better-auth/src/plugins/email-otp/index.ts (+5 -4)
📝 packages/better-auth/src/plugins/haveibeenpwned/haveibeenpwned.test.ts (+1 -1)
📝 packages/better-auth/src/plugins/magic-link/index.ts (+2 -2)
📝 packages/better-auth/src/plugins/one-tap/index.ts (+1 -1)
📝 packages/better-auth/src/types/options.ts (+6 -0)

📄 Description

No description provided


🔄 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/2342 **Author:** [@PodkopovP](https://github.com/PodkopovP) **Created:** 4/17/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`ae32eb1`](https://github.com/better-auth/better-auth/commit/ae32eb10f959b15f044628ad765207fd270e23d3) fix: add context parameter to findUserByEmail calls, exposed custom findUser option - [`007f4d0`](https://github.com/better-auth/better-auth/commit/007f4d018c5066ecb5bb71b4539e51195e8f2e9f) Merge branch 'better-auth:main' into main - [`71b91b5`](https://github.com/better-auth/better-auth/commit/71b91b5ac15f3bc549f6601394106af624cf220c) fix: update findUserByEmail call to use an empty object for options and document custom user finding logic - [`536f4f0`](https://github.com/better-auth/better-auth/commit/536f4f07c696c0b473d122ee670036108d4c10b8) fix: update findUserByEmail call to use an empty object for options and document custom user finding logic ### 📊 Changes **12 files changed** (+39 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+2 -2) 📝 `packages/better-auth/src/api/routes/forget-password.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/update-user.ts` (+2 -2) 📝 `packages/better-auth/src/db/internal-adapter.ts` (+16 -10) 📝 `packages/better-auth/src/plugins/admin/admin.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+5 -4) 📝 `packages/better-auth/src/plugins/haveibeenpwned/haveibeenpwned.test.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/magic-link/index.ts` (+2 -2) 📝 `packages/better-auth/src/plugins/one-tap/index.ts` (+1 -1) 📝 `packages/better-auth/src/types/options.ts` (+6 -0) </details> ### 📄 Description _No description provided_ --- <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 11:40: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#4270