keenethics / node-react-starter-kit

MIT License
0 stars 1 forks source link

Exclude password and refresh_token fields from result of user creation api call #41

Closed OksentukVlad closed 5 years ago

OksentukVlad commented 5 years ago

We can either exclude them manually in place or add toJSON method to User instance like suggested here: https://stackoverflow.com/questions/45655612/sequelize-dont-return-password-on-create