updating cookie settings for koa-session
This commit is contained in:
parent
17cdf079da
commit
c9d31dcd06
|
@ -63,11 +63,6 @@ const sessionMiddleware: Middleware = async (ctx: any, next: any) => {
|
||||||
store: new RedisStore({ client: redisClient.getClient() }),
|
store: new RedisStore({ client: redisClient.getClient() }),
|
||||||
key: "koa:sess",
|
key: "koa:sess",
|
||||||
maxAge: 86400000, // one day
|
maxAge: 86400000, // one day
|
||||||
httpOnly: true,
|
|
||||||
secure: process.env.NODE_ENV === "production",
|
|
||||||
sameSite: "strict",
|
|
||||||
rolling: true,
|
|
||||||
renew: true,
|
|
||||||
},
|
},
|
||||||
app
|
app
|
||||||
)(ctx, next)
|
)(ctx, next)
|
||||||
|
|
Loading…
Reference in New Issue