From df0eb84f433b9f5a2965314000fc6c45e7b541f4 Mon Sep 17 00:00:00 2001 From: Nathan Lie Date: Thu, 8 Aug 2024 06:48:23 -0700 Subject: [PATCH] feat(auth): set session expiry based on interaction expiry env --- 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( {