mirror of
https://github.com/kevin-DL/complete-node-bootcamp.git
synced 2026-01-11 19:14:26 +00:00
Fixed minor bug
This commit is contained in:
@@ -20,7 +20,7 @@ const createSendToken = (user, statusCode, req, res) => {
|
|||||||
Date.now() + process.env.JWT_COOKIE_EXPIRES_IN * 24 * 60 * 60 * 1000
|
Date.now() + process.env.JWT_COOKIE_EXPIRES_IN * 24 * 60 * 60 * 1000
|
||||||
),
|
),
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: req.secure || req.headers('x-forwarded-proto') === 'https'
|
secure: req.secure || req.headers['x-forwarded-proto'] === 'https'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Remove password from output
|
// Remove password from output
|
||||||
|
|||||||
Reference in New Issue
Block a user