Fix merge conflicts for index

This commit is contained in:
Tuan Dang
2022-12-15 15:31:14 -05:00
35 changed files with 1689 additions and 214 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ export const login2 = async (req: Request, res: Response) => {
// store (refresh) token in httpOnly cookie
res.cookie('jid', tokens.refreshToken, {
httpOnly: true,
path: '/token',
path: '/',
sameSite: 'strict',
secure: NODE_ENV === 'production' ? true : false
});
@@ -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
});