Anonymous User Setting Username
Hello,
In my application I'm using the
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
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.
and then you could use something like uuid or anything similar to generate a collision resistant name.