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) => {
|
exports.logoutUser = catchAsync(async (req, res, next) => {
|
||||||
res.cookie('raw-password', '', {
|
res.cookie('belonging_token', '', {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
maxAge: 0,
|
maxAge: 0,
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|||||||
Reference in New Issue
Block a user