Secure cookies in production
This commit is contained in:
@@ -21,7 +21,7 @@ export default async ({ app }) => {
|
|||||||
activeDuration: 1000 * 60 * 5,
|
activeDuration: 1000 * 60 * 5,
|
||||||
cookie: {
|
cookie: {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: false,
|
secure: process.env.NODE_ENV === "production",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user