Open forxtu opened 7 years ago
I get the same error now, had it working a couple of weeks ago. Some package has updated and broken the app I believe
Ok this fixed it.
In User.js file
const token = jwt.sign(user, config.secret, {
change user to {data: user}
Thank you for the answer! I'll try solution asap
Hello! First of all thank you a lot for the great tutorials!
Question: I can register users and I have them in my db, but when I'm trying to log in I got this error:
Please help me figure out why I got it and how to fix it
Thank you a lot!