Skip to content

Commit

Permalink
auth: Increase short-term token limit. (#1322)
Browse files Browse the repository at this point in the history
8h is the maximum allowed by the server.
  • Loading branch information
nichtverstehen authored Sep 12, 2024
1 parent 47fcb99 commit cfdfd75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/auth/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ func (t *Token) IssueToken(ctx context.Context, minDur time.Duration, issueShort
}

dur := 2 * minDur
if dur > time.Hour {
dur = time.Hour
if dur > 8*time.Hour {
dur = 8 * time.Hour
}

newToken, err := issueShortTerm(ctx, t.SessionToken, dur)
Expand Down

0 comments on commit cfdfd75

Please sign in to comment.