Commit 3a7e4501 authored by Grant's avatar Grant
Browse files

simplify session.cookie.secure

parent 7d05f584
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -23,11 +23,7 @@ export const session = expressSession({
  }),
  cookie: {
    httpOnly: false,
    ...(process.env.NODE_ENV === "development"
      ? { sameSite: "none" }
      : {
          secure: true,
        }),
    secure: process.env.NODE_ENV === "production",
  },
});