DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+4 =
Submit