reduce share token duration

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-06-08 12:13:38 +02:00
parent 3f9a03e60d
commit 7756cf9b1e

View File

@@ -66,7 +66,7 @@ const (
var ( var (
tokenDuration = 20 * time.Minute tokenDuration = 20 * time.Minute
shareTokenDuration = 12 * time.Hour shareTokenDuration = 2 * time.Hour
// csrf token duration is greater than normal token duration to reduce issues // csrf token duration is greater than normal token duration to reduce issues
// with the login form // with the login form
csrfTokenDuration = 6 * time.Hour csrfTokenDuration = 6 * time.Hour