[PR #4011] [CLOSED] feat: include user object in sendVerificationOTP #5135

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4011
Author: @frectonz
Created: 8/14/2025
Status: Closed

Base: canaryHead: feat/user-in-send-verification-otp


📝 Commits (1)

  • 71e3535 feat: include user object in sendVerificationOTP

📊 Changes

1 file changed (+14 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/plugins/email-otp/index.ts (+14 -2)

📄 Description

closes #3761

Summary by cubic

Added the user object to the sendVerificationOTP callback so handlers now receive user details when sending OTP emails.

  • New Features
  • Passed the user object in callbacks for sign-in, email verification, and password reset.

🔄 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/4011 **Author:** [@frectonz](https://github.com/frectonz) **Created:** 8/14/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/user-in-send-verification-otp` --- ### 📝 Commits (1) - [`71e3535`](https://github.com/better-auth/better-auth/commit/71e3535a7271e443723a8188d6510d1039318ee8) feat: include user object in `sendVerificationOTP` ### 📊 Changes **1 file changed** (+14 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+14 -2) </details> ### 📄 Description closes #3761 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added the user object to the `sendVerificationOTP` callback so handlers now receive user details when sending OTP emails. - **New Features** - Passed the user object in callbacks for sign-in, email verification, and password reset. <!-- 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-03-13 12:11:49 -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#5135