From 7756cf9b1e6ec3415b2de4c1a4772e7ba741db4b Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 8 Jun 2024 12:13:38 +0200 Subject: [PATCH] reduce share token duration Signed-off-by: Nicola Murino --- internal/httpd/auth_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/httpd/auth_utils.go b/internal/httpd/auth_utils.go index 4650e2f6..0ee3dabb 100644 --- a/internal/httpd/auth_utils.go +++ b/internal/httpd/auth_utils.go @@ -66,7 +66,7 @@ const ( var ( tokenDuration = 20 * time.Minute - shareTokenDuration = 12 * time.Hour + shareTokenDuration = 2 * time.Hour // csrf token duration is greater than normal token duration to reduce issues // with the login form csrfTokenDuration = 6 * time.Hour