fix: occasional 401 with burst of requests
Massimo Melina committed
May 23, 2026 at 20:25 UTC
6f4b35c65ef2c3d126b2e716dbae5f43a42a68be
1 file changed
+1
-1
src/middlewares.ts
+1
-1
@@ -175,7 +175,7 @@ export const paramsDecoder: Koa.Middleware = async (ctx, next) => {
175
let internalSessionMw: any
176
let options: any
177
events.once('app', () => // wait for app to be defined
178
- internalSessionMw = session(options = { signed: true, rolling: true, sameSite: 'lax' } as const, app) )
178
+ internalSessionMw = session(options = { signed: true, renew: true, sameSite: 'lax' } as const, app) )
179
export const sessionMiddleware: Koa.Middleware = (ctx, next) => {
180
options.key = 'hfs_' + ctx.protocol
181
return internalSessionMw(ctx, next)