mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-28 22:53:43 +00:00
fix: #190 PostgreSQLを使用しているときにOAuth2クライアントを作成できない問題を修正
This commit is contained in:
@@ -13,7 +13,6 @@ import org.springframework.security.oauth2.server.authorization.settings.ClientS
|
||||
import org.springframework.security.oauth2.server.authorization.settings.TokenSettings
|
||||
import org.springframework.stereotype.Service
|
||||
import java.time.Duration
|
||||
import java.time.Instant
|
||||
import java.util.*
|
||||
|
||||
@Service
|
||||
@@ -46,7 +45,7 @@ class AppApiServiceImpl(
|
||||
.tokenSettings(
|
||||
TokenSettings.builder()
|
||||
.accessTokenTimeToLive(
|
||||
Duration.ofSeconds((Instant.MAX.epochSecond - Instant.now().epochSecond - 10000) / 1000)
|
||||
Duration.ofSeconds(31536000000)
|
||||
)
|
||||
.build()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user