From 8c5f495ce50f732c895a8b53c939f18dbc235154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Wed, 13 May 2020 21:23:15 +0200 Subject: [PATCH] fix(api): frontend sessions expire after 15 minutes (now 1d) --- src/auth/auth.controller.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts index 33e0621..eead627 100644 --- a/src/auth/auth.controller.ts +++ b/src/auth/auth.controller.ts @@ -28,9 +28,7 @@ export class AuthController { // Transmit accessToken to Frontend res.cookie("listory_access_token", accessToken, { - // SPA will directly read cookie, save it to local storage and delete it - // 15 Minutes should be enough - maxAge: 15 * 60 * 1000, + maxAge: 24 * 60 * 60 * 1000, // 1 day // Must be readable by SPA httpOnly: false,