async function createUser(userData) {
// Validate and hash password
const hashedPassword = await bcrypt.hash(userData.password, 10);
const user = await User.create({
name: userData.name,
email: userData.email,
password: hashedPassword
});
return user;
}
"Start coding together in seconds. No setup, no hassle, just pure collaboration."
— Join thousands of teams