small patch to use secure cookies only when secure

This commit is contained in:
Expand-sys 2022-12-23 15:46:45 +11:00
parent 9e1e078ee8
commit 064a886775

View file

@ -29,7 +29,7 @@ fastify.register(require("fastify-secure-session"), {
cookie: { cookie: {
path: "/", path: "/",
// options for setCookie, see https://github.com/fastify/fastify-cookie // options for setCookie, see https://github.com/fastify/fastify-cookie
secure: true, secure: `${process.env.SECURE}`,
httpOnly: true, httpOnly: true,
overwrite: true, overwrite: true,
}, },