From 451eff6de4b5e357e07202c2cfc3f9327a95b5a1 Mon Sep 17 00:00:00 2001 From: John Kevin Umali <54800909+Kevin-Umali@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:19:11 +0800 Subject: [PATCH] [TL-DYS-62] (#42) * Fix cookies v1 * Fix cookies v2 --- client/app/login/loading.tsx | 5 +++++ server/src/controllers/authentication.controller.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 client/app/login/loading.tsx diff --git a/client/app/login/loading.tsx b/client/app/login/loading.tsx new file mode 100644 index 0000000..c74630a --- /dev/null +++ b/client/app/login/loading.tsx @@ -0,0 +1,5 @@ +import PageLoader from "@/components/page-loader"; + +export default function Loading() { + return ; +} diff --git a/server/src/controllers/authentication.controller.ts b/server/src/controllers/authentication.controller.ts index 7aec000..58bc2b1 100644 --- a/server/src/controllers/authentication.controller.ts +++ b/server/src/controllers/authentication.controller.ts @@ -55,7 +55,7 @@ export const authorizeUser = async (req: BodyRequest, res: Response secure: process.env.NODE_ENV === "production", httpOnly: true, signed: true, - sameSite: "lax", + sameSite: "none", expires: refreshTokenExpiry, });