remove cookie path temporary

This commit is contained in:
Maidul Islam
2022-12-13 18:54:45 -05:00
parent 5db60c0dad
commit c33b043f5f

View File

@@ -147,7 +147,7 @@ export const logout = async (req: Request, res: Response) => {
// clear httpOnly cookie
res.cookie('jid', '', {
httpOnly: true,
path: '/token',
path: '/',
sameSite: 'strict',
secure: NODE_ENV === 'production' ? true : false
});