This commit is contained in:
Omer Sabic 2024-07-21 17:13:01 +02:00
parent 8ff80c76f3
commit 600186ae42

View File

@ -96,13 +96,13 @@ export const authRoutes = (fastify, _, done) => {
}
})
// response.setCookie("token", session_id, {
// httpOnly: false,
// path: "/",
// sameSite: false,
// maxAge: 1000 * 60 * 60 * 24 * 7,
// domain: ".omersabic.com"
// }).redirect(env.FRONTEND_URL);
reply.setCookie("token", session_id, {
httpOnly: true,
path: "/",
sameSite: false,
maxAge: 1000 * 60 * 60 * 24 * 7,
domain: "api.youpage.ai"
});
reply.redirect(env.FRONTEND_URL + "/auth?token=" + session_id);