From a5bef5d4a4ae75447ca1f65259c5541edfc87dd8 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Sat, 7 Jan 2023 12:16:03 +0100 Subject: [PATCH] fix: refresh token expires after 1 day instead of 3 months --- backend/src/auth/auth.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/auth/auth.controller.ts b/backend/src/auth/auth.controller.ts index 15add826..4bc197da 100644 --- a/backend/src/auth/auth.controller.ts +++ b/backend/src/auth/auth.controller.ts @@ -153,7 +153,7 @@ export class AuthController { response.cookie("refresh_token", refreshToken, { path: "/api/auth/token", httpOnly: true, - maxAge: 60 * 60 * 24 * 30 * 3, + maxAge: 1000 * 60 * 60 * 24 * 30 * 3, }); return response;