[hotfix] token claim fixed. (2x)

This commit is contained in:
dalbodeule 2025-06-04 16:27:32 +09:00
parent 90230c4691
commit 77eecaca34
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -224,7 +224,10 @@ class UserHandler(
}
try {
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)
chatChannelId = getChzzkChannelId(channel.channelId)