© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Anonymous User Setting Username - Better Auth
BA
Better Auth
•
13mo ago
•
4 replies
MrT Stephens
Anonymous User Setting Username
Hello
,
In my application I
'm using the
anonymous
anonymous
and
username
username
plugins
. When I sign in with an anonymous user is there an easy way to set a unique username for the anonymous user which was created
. Thanks
.
Solution
Use a hook
https://www.better-auth.com/docs/concepts/hooks
and then you could use something like uuid or anything similar to generate a collision resistant name
.
Hooks | Better Auth
Better Auth Hooks let you customize BetterAuth
's behavior
Jump to solution
Similar Threads
Similar Threads
Anonymous user
BA
Better Auth / help
4mo ago
anonymous user details
BA
Better Auth / help
14mo ago
Anonymous User Per IP
BA
Better Auth / help
8mo ago
generateName in Anonymous plugin for username instead of name
BA
Better Auth / help
11mo ago