This commit is contained in:
root
2025-10-17 02:23:24 +00:00
parent 661f7cf6e9
commit efacf59414
8 changed files with 55 additions and 45 deletions

View File

@@ -31,8 +31,8 @@ export async function signinController(req, res) {
const { token, userData } = await signinService(email, password);
res.cookie("livepoll-access-token", token, {
httpOnly: true,
secure: true,
sameSite: "None",
secure: false,
sameSite: "Lax",
expires: new Date(Date.now() + 24 * 60 * 60 * 1000 * 365), // 1 year
path: "/"
}).status(200).json({