diff --git a/components/user/userController.js b/components/user/userController.js index c4cff2c..2918287 100644 --- a/components/user/userController.js +++ b/components/user/userController.js @@ -33,7 +33,7 @@ exports.loginUser = catchAsync(async (req, res, next) => { }) exports.logoutUser = catchAsync(async (req, res, next) => { - res.cookie('raw-password', '', { + res.cookie('belonging_token', '', { httpOnly: true, maxAge: 0, path: '/',