From 91dcc60588bd22a5a9038f2e144dd2156c9698b9 Mon Sep 17 00:00:00 2001 From: yanghao05 Date: Tue, 29 Apr 2025 20:59:58 +0800 Subject: [PATCH] feat: update --- backend/app/http/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/http/auth.go b/backend/app/http/auth.go index 8ec7d66..d6349aa 100644 --- a/backend/app/http/auth.go +++ b/backend/app/http/auth.go @@ -79,7 +79,7 @@ func (ctl *auth) Login(ctx fiber.Ctx, code, state, redirect string) error { ctx.Cookie(&fiber.Cookie{ Name: "token", Value: jwtToken, - Expires: time.Now().Add(6 * time.Hour), + Expires: time.Now().Add(24 * time.Hour), HTTPOnly: true, })