I\'ve set a cookie with an express server like this:
const payload = { email }; const options = { expiresIn: \'1h\' }; const token = sign(payload, process.env.JWT