Hi,
Hoping someone can help.
My backend fails to work when registering a new user, I have the error: "JsonWebTokenError: jwt malformed" the issue appears to be that the JWT_SECRET env is not available in the userController.js file. I'm wondering a couple of things here.
- Why no package.json for the backend project?
- Why is dotenv not imported/required in the userController.js
It's a little weird that others haven't had the same issue, so I guess I must be missing something?
Hi,
Hoping someone can help.
My backend fails to work when registering a new user, I have the error: "JsonWebTokenError: jwt malformed" the issue appears to be that the JWT_SECRET env is not available in the userController.js file. I'm wondering a couple of things here.
It's a little weird that others haven't had the same issue, so I guess I must be missing something?