diff --git a/packages/server/packages/play-node-go/server/services/signToken.js b/packages/server/packages/play-node-go/server/services/signToken.js index f7260a3..588b730 100644 --- a/packages/server/packages/play-node-go/server/services/signToken.js +++ b/packages/server/packages/play-node-go/server/services/signToken.js @@ -13,9 +13,9 @@ const signToken = (res, user) => { return res.cookie('token', token, { expires: new Date(Date.now() + expiration), domain: process.env.DOMAIN, - // secure: false, // set to true if your using https - httpOnly: true - // path: '/api/v1' + secure: process.env.NODE_ENV === 'production' ? true : false, + httpOnly: true, + sameSite: 'Strict' }); }; module.exports = signToken; \ No newline at end of file