Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Anonymous User Setting Username - Better Auth
BA
Better Auth
•
12mo 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
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Anonymous user
BA
Better Auth / help
2mo ago
anonymous user details
BA
Better Auth / help
12mo ago
Anonymous User Per IP
BA
Better Auth / help
6mo ago
generateName in Anonymous plugin for username instead of name
BA
Better Auth / help
10mo ago