File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
lowcoder-sdk/src/main/java/org/lowcoder/sdk/config
lowcoder-server/src/main/java/org/lowcoder/api/home Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,8 @@ public static class Workspace {
141
141
142
142
@ Data
143
143
public static class Cookie {
144
-
145
- private long maxAgeInSeconds = Duration .ofDays (30 ).toSeconds ();
144
+ //Set cookie max age to 1 day
145
+ private long maxAgeInSeconds = Duration .ofDays (1 ).toSeconds ();
146
146
}
147
147
148
148
@ Data
Original file line number Diff line number Diff line change @@ -118,10 +118,7 @@ public Mono<Void> extendValidity(String token) {
118
118
119
119
private Duration getTokenExpireTime () {
120
120
long maxAgeInSeconds = commonConfig .getCookie ().getMaxAgeInSeconds ();
121
- if (maxAgeInSeconds >= 0 ) {
122
- return Duration .ofSeconds (maxAgeInSeconds ).plus (Duration .ofDays (1 ));
123
- }
124
- return Duration .ofDays (7 );
121
+ return Duration .ofSeconds (maxAgeInSeconds );
125
122
}
126
123
127
124
@ Override
You can’t perform that action at this time.
0 commit comments