[PR #2362] [CLOSED] feat(anonymous): ability to add custom default username for anonymous users. #21180

Closed
opened 2026-04-15 20:11:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: main


📝 Commits (2)

  • 68b75fe feat: ability to add custom default username for anonymous users.
  • b872c00 Merge branch 'better-auth:main' into main

📊 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 a UNIQUE constraint on my users' names so they do not duplicate.
Before, every new Anonymous user had the same username: "Anonymous." Now, a unique string with a postfix is generated for each user's name.

#2263


🔄 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/2362 **Author:** [@drago1520](https://github.com/drago1520) **Created:** 4/19/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`68b75fe`](https://github.com/better-auth/better-auth/commit/68b75feffb0993ab8f0c99d0fa05a4b1ebf8450c) feat: ability to add custom default username for anonymous users. - [`b872c00`](https://github.com/better-auth/better-auth/commit/b872c00c2c595c77b587efab3b76bdc861b0a6c6) Merge branch 'better-auth:main' into main ### 📊 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 a UNIQUE constraint on my users' names so they do not duplicate. Before, every new Anonymous user had the same username: "Anonymous." Now, a unique string with a postfix is generated for each user's name. #2263 --- <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-04-15 20:11: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#21180