Skip to content

Commit fdbd492

Browse files
authored
feat(controlplane): increase long-lived user token expiration to 1 week (#3119)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent 4b86e6a commit fdbd492

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)