mirror of https://github.com/usbharu/Hideout.git
fix: #190 PostgreSQLを使用しているときにOAuth2クライアントを作成できない問題を修正
This commit is contained in:
parent
b9ecd2feff
commit
b785d241f8
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue