fix authtoken expiry check

This commit is contained in:
gowthaman.b
2023-11-13 08:15:19 +05:30
parent e38da54f11
commit 5c13e0efdd
4 changed files with 38 additions and 17 deletions

View File

@@ -28,6 +28,7 @@ import java.security.interfaces.RSAPrivateKey
import java.security.interfaces.RSAPublicKey
import java.security.spec.PKCS8EncodedKeySpec
import java.security.spec.X509EncodedKeySpec
import java.time.LocalDateTime
import java.util.*
import kotlin.jvm.optionals.getOrDefault
@@ -37,7 +38,7 @@ object Session {
private val logger = LoggerFactory.getLogger("session")
private val currentUser = object : ThreadLocal<AuthUser>() {
override fun initialValue(): AuthUser {
return AuthUser("", "", emptyList(), "")
return AuthUser("", "", emptyList(), "", LocalDateTime.now())
}
}