[GH-ISSUE #2263] Anonymous plugin unique name #17750

Closed
opened 2026-04-15 16:02:52 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @ywyher on GitHub (Apr 13, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2263

Originally assigned to: @ping-maxwell on GitHub.

when you create a user the name field is always Anonymous
what if i want the name field to be unique ?
it would be better if we have an option to enable randomly generated names something like Anonymous${random} or any other way to customize the name filed

Originally created by @ywyher on GitHub (Apr 13, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2263 Originally assigned to: @ping-maxwell on GitHub. when you create a user the name field is always Anonymous what if i want the name field to be unique ? it would be better if we have an option to enable randomly generated names something like `Anonymous${random}` or any other way to customize the name filed
GiteaMirror added the enhancementlocked labels 2026-04-15 16:02:52 -05:00
Author
Owner

@drago1520 commented on GitHub (Apr 19, 2025):

yes!!!! yes!

<!-- gh-comment-id:2816655762 --> @drago1520 commented on GitHub (Apr 19, 2025): yes!!!! yes!
Author
Owner

@drago1520 commented on GitHub (Apr 19, 2025):

I searched through their docs. It is not supported currently. Having unique usernames is such a basic feature.

<!-- gh-comment-id:2816655954 --> @drago1520 commented on GitHub (Apr 19, 2025): I searched through their docs. It is not supported currently. Having unique usernames is such a basic feature.
Author
Owner

@drago1520 commented on GitHub (Apr 19, 2025):

I fixed it. Now it generates a UUID string with postfix, but you can also add custom default username.

<!-- gh-comment-id:2816662164 --> @drago1520 commented on GitHub (Apr 19, 2025): I fixed it. Now it generates a UUID string with postfix, but you can also add custom default username.
Author
Owner

@ping-maxwell commented on GitHub (Apr 20, 2025):

https://github.com/better-auth/better-auth/pull/2361

<!-- gh-comment-id:2817174100 --> @ping-maxwell commented on GitHub (Apr 20, 2025): https://github.com/better-auth/better-auth/pull/2361
Author
Owner

@ping-maxwell commented on GitHub (Apr 20, 2025):

@drago1520 Sorry, just only noticed now you have a PR for this.
I made mine from a request via the Better Auth Discord server.

<!-- gh-comment-id:2817174326 --> @ping-maxwell commented on GitHub (Apr 20, 2025): @drago1520 Sorry, just only noticed now you have a PR for this. I made mine from a request via the Better Auth Discord server.
Author
Owner

@Bekacru commented on GitHub (May 6, 2025):

#2361

<!-- gh-comment-id:2853154458 --> @Bekacru commented on GitHub (May 6, 2025): #2361
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#17750