error 3a expected 22payload 22 to be a plain object at validate

Solutions on MaxInterview for error 3a expected 22payload 22 to be a plain object at validate by the best coders in the world

showing results for - "error 3a expected 22payload 22 to be a plain object at validate"
Stefano
19 Mar 2019
1const token = jwt.sign(user.toJSON(), config.secret, {
2  expiresIn: 604800 // 1 week
3});
4