-
Notifications
You must be signed in to change notification settings - Fork 184
Description
I forked your code and ran npm install. Im running into this issue: Error: Illegal arguments: undefined, string
(method:Post) localhost:8080/api/auth/signup
Error: Illegal arguments: undefined, string
at Object.bcrypt.hashSync (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/bcryptjs/dist/bcrypt.js:189:19)
at exports.signup (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/app/controllers/auth.controller.js:13:22)
at Layer.handle [as handle_request] (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/express/lib/router/route.js:137:13)
at checkRolesExisted (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/app/middlewares/verifySignUp.js:51:3)
at Layer.handle [as handle_request] (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/express/lib/router/route.js:137:13)
at /Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/app/middlewares/verifySignUp.js:34:7
at /Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/mongoose/lib/model.js:4915:16
at /Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/mongoose/lib/helpers/promiseOrCallback.js:24:16
at /Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/mongoose/lib/model.js:4938:21
at /Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/mongoose/lib/query.js:4380:11
at /Users/lordknighton/Desktop/node-js-jwt-auth-mongodb/node_modules/kareem/index.js:135:16
at processTicksAndRejections (internal/process/task_queues.js:79:11)