From 2dac38560b6c54b6e7676dcd4682bfa57973292f Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Sun, 30 Jun 2024 20:10:16 +0200 Subject: [PATCH] fix: set max age of access token cookie to 15 minutes --- 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 e25445e1..741f64e2 100644 --- a/backend/src/auth/auth.service.ts +++ b/backend/src/auth/auth.service.ts @@ -229,7 +229,7 @@ export class AuthService { if (accessToken) response.cookie("access_token", accessToken, { sameSite: "lax", - maxAge: 1000 * 60 * 60 * 24 * 30 * 3, // 3 months + maxAge: 1000 * 60 * 60 * 15, // 15 minutes }); if (refreshToken) response.cookie("refresh_token", refreshToken, {