diff --git a/api/index.ts b/api/index.ts index 69d2fed..29d2540 100644 --- a/api/index.ts +++ b/api/index.ts @@ -17,7 +17,7 @@ const store = new CookieStore(Deno.env.get("COOKIE_STORE_SECRET")!); app.use(Session.initMiddleware(store, { cookieSetOptions: { httpOnly: true, - sameSite: "lax", + sameSite: "none", }, })); diff --git a/frontend/src/stores/profileStore.ts b/frontend/src/stores/profileStore.ts index 2b58629..08744cf 100644 --- a/frontend/src/stores/profileStore.ts +++ b/frontend/src/stores/profileStore.ts @@ -38,9 +38,7 @@ export const useProfileStore = defineStore("profile", () => { }); if (response.status !== 200) { - if (response.status === 401) { - await authStore.logout(); - } + await authStore.logout(); return; }