Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

const token = jwt.sign(user.toJSON(), config.secret, {
  expiresIn: 604800 // 1 week
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Expected #plain #validate
ADD COMMENT
Topic
Name
7+4 =