[PR #2450] [CLOSED] feat: ability to change default username for anonymous users. #4325

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2450
Author: @drago1520
Created: 4/26/2025
Status: Closed

Base: mainHead: feat/anonymous-usernames-change


📝 Commits (1)

  • a98b70b feat: ability to pass probs for default username for anonymous users.

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/anonymous/index.ts (+10 -3)

📄 Description

As a database engineer, I want to have UNIQUE constrain on my users' names, so they do not dublicate.
Before, Every new Anonymous user had the same username "Anonymous".

Now, a unique string is generated for each user's name with a postfix.


🔄 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/2450 **Author:** [@drago1520](https://github.com/drago1520) **Created:** 4/26/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/anonymous-usernames-change` --- ### 📝 Commits (1) - [`a98b70b`](https://github.com/better-auth/better-auth/commit/a98b70b137da815fedcb28a6d4eefae527ace288) feat: ability to pass probs for default username for anonymous users. ### 📊 Changes **1 file changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/anonymous/index.ts` (+10 -3) </details> ### 📄 Description As a database engineer, I want to have UNIQUE constrain on my users' names, so they do not dublicate. Before, Every new Anonymous user had the same username "Anonymous". Now, a unique string is generated for each user's name with a postfix. --- <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:41:51 -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#4325