serverless-graphql
serverless-graphql copied to clipboard
Bcryptjs uses sync functions
Why do you use synchronous versions of bcryptjs functions ?
user.password_hash = bcryptjs.hashSync(user.password, 10);
could be written
bcryptjs.hash(user.password, 10, function(err, hash) {
user.password_hash = hash
....
});
Closing this since it's related to the old version. Thanks for looking into it @denneulin