updating cookie settings for koa-session

This commit is contained in:
Martin McKeaveney 2025-02-24 13:49:31 +00:00
parent 17cdf079da
commit c9d31dcd06
1 changed files with 0 additions and 5 deletions

View File

@ -63,11 +63,6 @@ const sessionMiddleware: Middleware = async (ctx: any, next: any) => {
store: new RedisStore({ client: redisClient.getClient() }),
key: "koa:sess",
maxAge: 86400000, // one day
httpOnly: true,
secure: process.env.NODE_ENV === "production",
sameSite: "strict",
rolling: true,
renew: true,
},
app
)(ctx, next)