[PR #3961] [MERGED] fix(email-otp): make plugin init option compatible with exactOptionalPropertyTypes #5108

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3961
Author: @Kinfe123
Created: 8/12/2025
Status: Merged
Merged: 8/13/2025
Merged by: @Bekacru

Base: mainHead: fix/email-otp-exact-optional-property-types


📝 Commits (1)

  • c7dd35d fix: email otp compat with extractOptionProperty

📊 Changes

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

View changed files

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

📄 Description

This pr fixes the by avoiding undefined function assignment with in the init plugin option making it compat with the exactOptionalPropertyTypes


Summary by cubic

Updated the email OTP plugin to avoid assigning undefined functions in the init option, making it compatible with exactOptionalPropertyTypes.


🔄 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/3961 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/12/2025 **Status:** ✅ Merged **Merged:** 8/13/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/email-otp-exact-optional-property-types` --- ### 📝 Commits (1) - [`c7dd35d`](https://github.com/better-auth/better-auth/commit/c7dd35d130b8f9b82901a8cfcea51e133bc0766f) fix: email otp compat with extractOptionProperty ### 📊 Changes **1 file changed** (+15 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+15 -16) </details> ### 📄 Description This pr fixes the by avoiding undefined function assignment with in the init plugin option making it compat with the exactOptionalPropertyTypes <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the email OTP plugin to avoid assigning undefined functions in the init option, making it compatible with exactOptionalPropertyTypes. <!-- 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:10:59 -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#5108