email and password login, with unique username
Hey, is it possible to enforce unique usernames with email and password login? I want it to error if the username they chose is already taken, similar to how it works with emial.
const response = await authClient.signUp.email({
email: data.email,
password: data.password,
name: data.username,
}); emailAndPassword: {
enabled: true,
},username field and name is only for displayed name?name is supposed to be a user real name, if you need to process such data, there is a displayUsername for display and username which I am pretty sure is unique in DB, but docs don't state thatusername not nameusername in username plugin unique?usernameusernameusernameusernamedisplayUsername