fix: 🚑 increase expiration time

this is a temporary fix until i implement token revitalization where i might turn it back down to 7 days
This commit is contained in:
Raymond 2025-08-04 07:03:37 -04:00 committed by GitHub
parent 1a54527428
commit db43e18b16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ class SessionToken(
// Token creation time
@Column(nullable = false)
var expiry: Instant = Instant.now().plusSeconds(3 * 86400),
var expiry: Instant = Instant.now().plusSeconds(14 * 86400),
// Linking to the AquaNetUser
@ManyToOne
@ -28,4 +28,4 @@ class SessionToken(
interface SessionTokenRepo : JpaRepository<SessionToken, String> {
fun findByToken(token: String): SessionToken?
fun findByAquaNetUserAuId(auId: Long): List<SessionToken>
}
}