Sequelize: don’t return password
Another way is to add a default scope to the User model. Add this in the model’s options object defaultScope: { attributes: { exclude: [‘password’] }, } Or you can create a separate scope to use it only in certain queries. Add this in the model’s options object scopes: { withoutPassword: { attributes: { exclude: … Read more