Answers for "Error: Expected "payload" to be a plain object. at validate"

2

Error: Expected "payload" to be a plain object. at validate

const token = jwt.sign(user.toJSON(), config.secret, {
  expiresIn: 604800 // 1 week
});
Posted by: Guest on October-20-2020
2

Error: Expected "payload" to be a plain object. at validate

const token = jwt.sign(user.toJSON(), config.secret, {
  expiresIn: 604800 // 1 week
});
Posted by: Guest on October-20-2020

Code answers related to "Error: Expected "payload" to be a plain object. at validate"

Code answers related to "Javascript"

Browse Popular Code Answers by Language