I am making a web application using nodejs and angular cli I\'m using JWT to authenticate my login function . But when I process it threw this error
Err
if it's not comming from moongose then use spread operator
const token = jwt.sign({ ...payload }, config.secret, { expiresIn: 100080 });