Merge pull request #136 from dalbodeule/debug

[hotfix] token claim fixed. (2x)
This commit is contained in:
JinU Choi 2025-06-04 16:30:02 +09:00 committed by GitHub
commit eccbc94269
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -224,7 +224,10 @@ class UserHandler(
} }
try { try {
val tokens = user.refreshToken?.let { token -> Connector.client.refreshAccessToken(token) } val tokens = user.refreshToken?.let { token -> Connector.client.refreshAccessToken(token) }
client = Connector.getClient(tokens!!.first, tokens.second) if(tokens == null) {
throw RuntimeException("AccessToken is not valid.")
}
client = Connector.getClient(tokens.first, tokens.second)
UserService.setRefreshToken(user, tokens.first, tokens.second) UserService.setRefreshToken(user, tokens.first, tokens.second)
chatChannelId = getChzzkChannelId(channel.channelId) chatChannelId = getChzzkChannelId(channel.channelId)