From ad268660277f3c997a65cdda886119f1b6ad29bf Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Fri, 15 May 2026 11:29:28 +0200 Subject: [PATCH] feat(controlplane): increase long-lived user token expiration to 1 week Bump the opt-in long-lived user token duration from 24h to 7 days, and pin the dev-mode token duration to an explicit 30 days so it no longer scales with the long-lived constant. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino --- app/controlplane/internal/service/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controlplane/internal/service/auth.go b/app/controlplane/internal/service/auth.go index cab134287..380f4c9a5 100644 --- a/app/controlplane/internal/service/auth.go +++ b/app/controlplane/internal/service/auth.go @@ -56,9 +56,9 @@ const ( // default shortLivedDuration = 10 * time.Second // opt-in - longLivedDuration = 24 * time.Hour + longLivedDuration = 7 * 24 * time.Hour // dev only - devUserDuration = 30 * longLivedDuration + devUserDuration = 30 * 24 * time.Hour ) type oauthResp struct {