From 371faa733ba6ca97f97d9d09af53e428b3bfa012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=B0=AA?= <42794343+a0eoc@users.noreply.github.com> Date: Fri, 3 May 2024 02:54:37 +0500 Subject: [PATCH] refactor(flags): increase cookie expiration time (#295) --- handlers/user/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/user/account.go b/handlers/user/account.go index e2e42aba..00941b9d 100644 --- a/handlers/user/account.go +++ b/handlers/user/account.go @@ -175,7 +175,7 @@ func EditAccount(c *fiber.Ctx) error { Name: "flags", Value: v, Path: "/", - Expires: time.Now().Add(time.Hour * 24 * 30), + Expires: time.Now().Add(time.Hour * 24 * 30 * 6), Secure: config.Production, HTTPOnly: true, SameSite: fiber.CookieSameSiteLaxMode,