Secure cookies in production

This commit is contained in:
Sebastian Rindom
2020-08-21 22:53:15 +02:00
parent 444cdff9a3
commit 1374bbae9e

View File

@@ -21,7 +21,7 @@ export default async ({ app }) => {
activeDuration: 1000 * 60 * 5,
cookie: {
httpOnly: true,
secure: false,
secure: process.env.NODE_ENV === "production",
},
})
)