From d4ebe14902ba598845a0df40169527d1225bccc3 Mon Sep 17 00:00:00 2001 From: Nathan Lie Date: Thu, 8 Aug 2024 23:32:38 -0700 Subject: [PATCH] feat(auth): set session expiry based on interaction expiry env (#2851) --- packages/auth/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/auth/src/app.ts b/packages/auth/src/app.ts index a70d438e24..5d45deab10 100644 --- a/packages/auth/src/app.ts +++ b/packages/auth/src/app.ts @@ -344,7 +344,7 @@ export class App { koa.keys = [this.config.cookieKey] const redis = await this.container.use('redis') - const maxAgeMs = 60 * 1000 + const maxAgeMs = this.config.interactionExpirySeconds * 1000 koa.use( session( {