FIX: logoutUser logic
This commit is contained in:
@@ -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: '/',
|
||||
|
||||
Reference in New Issue
Block a user