fix(auth/property): resolve auth token resolution, add property seeder
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-19 07:08:36 +03:30
parent 284594c782
commit 95c0532374
4 changed files with 168 additions and 3 deletions
+10
View File
@@ -26,6 +26,11 @@ exports.loginUser = catchAsync(async (req, res, next) => {
maxAge: maxAge * 1000,
path: '/',
})
res.cookie('bm-token', token, {
httpOnly: false,
maxAge: maxAge * 1000,
path: '/',
})
res.status(200).json({
status: 'success',
@@ -39,6 +44,11 @@ exports.logoutUser = catchAsync(async (req, res, next) => {
maxAge: 0,
path: '/',
})
res.cookie('bm-token', '', {
httpOnly: false,
maxAge: 0,
path: '/',
})
res.status(200).json({
status: 'success',