mirror of
https://github.com/kevin-DL/complete-node-bootcamp.git
synced 2026-01-11 11:04:27 +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
|
||||
),
|
||||
httpOnly: true,
|
||||
secure: req.secure || req.headers('x-forwarded-proto') === 'https'
|
||||
secure: req.secure || req.headers['x-forwarded-proto'] === 'https'
|
||||
});
|
||||
|
||||
// Remove password from output
|
||||
|
||||
Reference in New Issue
Block a user