Skip to content

Commit 1e0dcaf

Browse files
authored
feat: change timeout and max refresh in jwt token (#3501)
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent 84ad2ff commit 1e0dcaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manager/config/constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ const (
5050
DefaultJWTRealm = "Dragonfly"
5151

5252
// DefaultJWTTimeout is default of timeout in jwt.
53-
DefaultJWTTimeout = 2 * 24 * time.Hour
53+
DefaultJWTTimeout = 14 * 24 * time.Hour
5454

5555
// DefaultJWTMaxRefresh is default of max refresh in jwt.
56-
DefaultJWTMaxRefresh = 2 * 24 * time.Hour
56+
DefaultJWTMaxRefresh = 7 * 24 * time.Hour
5757
)
5858

5959
const (

0 commit comments

Comments
 (0)