From da8ee475ec48673a50fc9d31ba4d314d0f04ec52 Mon Sep 17 00:00:00 2001 From: wuriyanto Date: Sun, 1 Sep 2024 22:33:04 +0700 Subject: [PATCH] dashboard: set token active to 1 year --- dashboard/handler/api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dashboard/handler/api.go b/dashboard/handler/api.go index 87983a9..9a3fbc1 100644 --- a/dashboard/handler/api.go +++ b/dashboard/handler/api.go @@ -195,8 +195,7 @@ func (h *DashboardHTTPHandler) Login(jwtService utils.JwtService) http.HandlerFu claim.User.Email = h.dashboardUsername // 1 year - // jwtString, err := jwtService.Generate(&claim, time.Hour*8766) - jwtString, err := jwtService.Generate(&claim, time.Second*10) + jwtString, err := jwtService.Generate(&claim, time.Hour*8766) if err != nil { shared.BuildJSONResponse(resp, shared.Response[shared.EmptyJSON]{ Success: false,