FIX: logoutUser logic

This commit is contained in:
MohammadHMazarei
2024-12-24 20:09:36 +03:30
parent a8891f4096
commit bfb525f938
+1 -1
View File
@@ -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: '/',