Change jid path

This commit is contained in:
Tuan Dang
2022-12-13 16:25:19 -05:00
parent 62f0b3f6df
commit 1a3d3906da

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
});