init
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user