How did you solve this, am getting a similar error
I think sequelize modified their doc. I had to do this
Users.beforeCreate(user => { user.password = bcrypt.hashSync( user.password, bcrypt.genSaltSync(10), null ); });
before it worked. Check out the doc Hooks
Can we use this authentication for Electron Desktop App too?
I have no idea as I haven't used Electron
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How did you solve this, am getting a similar error
I think sequelize modified their doc. I had to do this
before it worked. Check out the doc Hooks
Can we use this authentication for Electron Desktop App too?
I have no idea as I haven't used Electron