[PR #5402] [MERGED] docs: clarify requireEmailVerification and sendOnSignIn behavior #22884

Closed
opened 2026-04-15 21:21:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5402
Author: @maxfromit
Created: 10/18/2025
Status: Merged
Merged: 10/22/2025
Merged by: @Bekacru

Base: canaryHead: patch-2


📝 Commits (3)

  • 076c8dd docs(email): clarify requireEmailVerification behavior and add config example
  • 785ca27 Apply suggestion from @Copilot
  • 398d9ad Apply suggestion from @Copilot

📊 Changes

1 file changed (+16 additions, -6 deletions)

View changed files

📝 docs/content/docs/concepts/email.mdx (+16 -6)

📄 Description

  • Updated a new section under "Require Email Verification" explaining that sendVerificationEmail is only triggered on sign-in if sendOnSignIn is set to true.
  • Included a corrected code snippet showing how to configure sendVerificationEmail and sendOnSignIn alongside requireEmailVerification.

Summary by cubic

Clarified the “Require Email Verification” docs to explain that sendVerificationEmail runs on sign-in only when sendOnSignIn is true. Added a corrected auth.ts example showing sendVerificationEmail, sendOnSignIn, and requireEmailVerification configured together.


🔄 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/5402 **Author:** [@maxfromit](https://github.com/maxfromit) **Created:** 10/18/2025 **Status:** ✅ Merged **Merged:** 10/22/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `patch-2` --- ### 📝 Commits (3) - [`076c8dd`](https://github.com/better-auth/better-auth/commit/076c8dd4a7d5aeba736028599605d57133499de3) docs(email): clarify requireEmailVerification behavior and add config example - [`785ca27`](https://github.com/better-auth/better-auth/commit/785ca27c4228c3146f4df2f000c19a735e03b52d) Apply suggestion from @Copilot - [`398d9ad`](https://github.com/better-auth/better-auth/commit/398d9ad1acfc21173b8424a463bddb19a696aff6) Apply suggestion from @Copilot ### 📊 Changes **1 file changed** (+16 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/email.mdx` (+16 -6) </details> ### 📄 Description - Updated a new section under "Require Email Verification" explaining that sendVerificationEmail is only triggered on sign-in if sendOnSignIn is set to true. - Included a corrected code snippet showing how to configure sendVerificationEmail and sendOnSignIn alongside requireEmailVerification. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Clarified the “Require Email Verification” docs to explain that sendVerificationEmail runs on sign-in only when sendOnSignIn is true. Added a corrected auth.ts example showing sendVerificationEmail, sendOnSignIn, and requireEmailVerification configured together. <!-- 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-15 21:21:01 -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#22884