Explain how to implement it synchronously and how it works?
let user = req.body;
if (user.user_password) {
    bcrypt.hash(user.user_password, config.salt.saltRounds, (err, hash) => {
        user.user_password = hash;
        console.log(user)
    });   
}
console.log(user)
 
     
    