[PR #1519] [MERGED] Don’t save email address as user name #3841

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1519
Author: @benkingcode
Created: 2/20/2025
Status: Merged
Merged: 2/20/2025
Merged by: @Bekacru

Base: mainHead: email-otp-name-optional


📝 Commits (2)

  • 135235f Don’t save email address as user name
  • 7223570 Set name to empty string

📊 Changes

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

View changed files

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

📄 Description

Currently the email OTP plugin saves the user's email address as their "name". This is undesirable as it leads to duplicate data, and also the email address should reasonably be assumed to be private, where as the name can be public.


🔄 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/1519 **Author:** [@benkingcode](https://github.com/benkingcode) **Created:** 2/20/2025 **Status:** ✅ Merged **Merged:** 2/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `email-otp-name-optional` --- ### 📝 Commits (2) - [`135235f`](https://github.com/better-auth/better-auth/commit/135235fafe63bfe14ab444639f9471634232917f) Don’t save email address as user name - [`7223570`](https://github.com/better-auth/better-auth/commit/7223570ffcd2c32c243edc1d27df2e3b74210673) Set name to empty string ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+1 -1) </details> ### 📄 Description Currently the email OTP plugin saves the user's email address as their "name". This is undesirable as it leads to duplicate data, and also the email address should reasonably be assumed to be private, where as the name can be public. --- <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 11:16:54 -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#3841