Skip to content

Commit ccf787b

Browse files
committed
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 <miguel@chainloop.dev>
1 parent 496af27 commit ccf787b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/controlplane/internal/service

app/controlplane/internal/service/auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ const (
5656
// default
5757
shortLivedDuration = 10 * time.Second
5858
// opt-in
59-
longLivedDuration = 24 * time.Hour
59+
longLivedDuration = 7 * 24 * time.Hour
6060
// dev only
61-
devUserDuration = 30 * longLivedDuration
61+
devUserDuration = 30 * 24 * time.Hour
6262
)
6363

6464
type oauthResp struct {

0 commit comments

Comments
 (0)