Using cookie-parser, I set a cookie with JWT:
cookie-parser
const token = jwt.sign(user.toJSON(), config); return res.cookie(\'authcookie\', token,