From 14c2185e6f1a81d63e25fbeec3e30a54cf6a44c5 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Sat, 27 Jul 2024 17:15:20 +0200 Subject: [PATCH] Revert "fix: set max age of access token cookie to 15 minutes" This reverts commit 2dac38560b6c54b6e7676dcd4682bfa57973292f. --- backend/src/auth/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/auth/auth.service.ts b/backend/src/auth/auth.service.ts index 587dffc5..e66b24c1 100644 --- a/backend/src/auth/auth.service.ts +++ b/backend/src/auth/auth.service.ts @@ -251,7 +251,7 @@ export class AuthService { if (accessToken) response.cookie("access_token", accessToken, { sameSite: "lax", - maxAge: 1000 * 60 * 15, // 15 minutes + maxAge: 1000 * 60 * 60 * 24 * 30 * 3, // 3 months }); if (refreshToken) response.cookie("refresh_token", refreshToken, {