Convert login token duration to milliseconds when calculating renewal time.
Fixes gh-96. Original pull request: gh-97.
This commit is contained in:
@@ -321,7 +321,7 @@ public class LifecycleAwareSessionManager implements SessionManager, DisposableB
|
||||
long milliseconds = NumberUtils
|
||||
.convertNumberToTargetClass(
|
||||
Math.max(1000,
|
||||
loginToken.getLeaseDuration()
|
||||
1000 * loginToken.getLeaseDuration()
|
||||
- timeUnit.toMillis(duration)),
|
||||
Integer.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user