setCookie(event, "jwt-token", token, {
httpOnly: true,
secure: true,
sameSite: "strict",
maxAge: timeBeforeExpiration,
});
res.writeHead(302, {
Location: `/`,
});
res.end();
setCookie(event, "jwt-token", token, {
httpOnly: true,
secure: true,
sameSite: "strict",
maxAge: timeBeforeExpiration,
});
res.writeHead(302, {
Location: `/`,
});
res.end();