[PR #6237] [MERGED] fix(email-otp): sign-in email-otp bugs with capitalized emails #6538

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6237
Author: @ping-maxwell
Created: 11/23/2025
Status: Merged
Merged: 11/23/2025
Merged by: @Bekacru

Base: canaryHead: fix(email-otp)/sign-in-email-otp-bugs-with-capitalized-emails


📝 Commits (2)

  • 89139c6 fix(email-otp): sign-in email-otp bugs with capitalized emails
  • f455e9f Merge branch 'canary' into fix(email-otp)/sign-in-email-otp-bugs-with-capitalized-emails

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

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

📄 Description

This PR adds .toLowerCase to email across 3 endpoints in emailOTP.

Half the endpoints have it, half doesn't, this inconsistency triggers a bug that breaks users who want to sign-in with email OTP which contains a capital letter in their email.


🔄 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/6237 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 11/23/2025 **Status:** ✅ Merged **Merged:** 11/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix(email-otp)/sign-in-email-otp-bugs-with-capitalized-emails` --- ### 📝 Commits (2) - [`89139c6`](https://github.com/better-auth/better-auth/commit/89139c601a10d4244ee2124178868d365c7fe50d) fix(email-otp): sign-in email-otp bugs with capitalized emails - [`f455e9f`](https://github.com/better-auth/better-auth/commit/f455e9fd85d4ccbe118acec5b5c18ec1394eeb86) Merge branch 'canary' into fix(email-otp)/sign-in-email-otp-bugs-with-capitalized-emails ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+3 -3) </details> ### 📄 Description This PR adds .toLowerCase to `email` across 3 endpoints in emailOTP. Half the endpoints have it, half doesn't, this inconsistency triggers a bug that breaks users who want to sign-in with email OTP which contains a capital letter in their email. --- <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 13:02:35 -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#6538