[PR #6238] [MERGED] chore(email-otp): additional unit tests for sign-in with capitalizations #6539

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

📋 Pull Request Information

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

Base: canaryHead: chore/email-otp-sign-in-with-caps-tests


📝 Commits (7)

  • 2c14894 chore(email-otp): unit tests for sign-in with capitalizations
  • 0c3fd92 Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests
  • 51d70b4 Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests
  • 1946474 chore: lint
  • eafb1af Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests
  • d92934d Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests
  • 894ad6d Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests

📊 Changes

1 file changed (+32 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/plugins/email-otp/email-otp.test.ts (+32 -0)

📄 Description

Summary by cubic

Added unit tests to confirm email-otp sign-in accepts uppercase and mixed-case emails. Ensures case-insensitive email handling even when the OTP is requested in lowercase and sign-in uses uppercase.

Written for commit 894ad6d174. Summary will update automatically on new commits.


🔄 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/6238 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 11/23/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `chore/email-otp-sign-in-with-caps-tests` --- ### 📝 Commits (7) - [`2c14894`](https://github.com/better-auth/better-auth/commit/2c14894968dffcfaafd77e77c8106cc507947858) chore(email-otp): unit tests for sign-in with capitalizations - [`0c3fd92`](https://github.com/better-auth/better-auth/commit/0c3fd920244300ddf71969688f4acbef6c3b5953) Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests - [`51d70b4`](https://github.com/better-auth/better-auth/commit/51d70b4f359096313aba5a704f7ddb1435f04423) Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests - [`1946474`](https://github.com/better-auth/better-auth/commit/19464743bf1df65783c9b74f35bcabf620805518) chore: lint - [`eafb1af`](https://github.com/better-auth/better-auth/commit/eafb1af4e7319ff9a39e7c5bfb09c74f97ebcfe7) Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests - [`d92934d`](https://github.com/better-auth/better-auth/commit/d92934d52f7f24877a9c3d935488349b1b46339f) Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests - [`894ad6d`](https://github.com/better-auth/better-auth/commit/894ad6d17430420fbcfdac61bf445b36ed1e29aa) Merge branch 'canary' into chore/email-otp-sign-in-with-caps-tests ### 📊 Changes **1 file changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/email-otp/email-otp.test.ts` (+32 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added unit tests to confirm email-otp sign-in accepts uppercase and mixed-case emails. Ensures case-insensitive email handling even when the OTP is requested in lowercase and sign-in uses uppercase. <sup>Written for commit 894ad6d17430420fbcfdac61bf445b36ed1e29aa. Summary will update automatically on new commits.</sup> <!-- 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 13:02:36 -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#6539