Anonymous User Setting Username
Hello,
In my application I'm using the
anonymous
and 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:Jump to 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
2 Replies
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
Ahh this will do perfectly thanks very much for your help.