mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-08 14:58:21 +00:00
[hotfix] token claim fixed. (2x)
This commit is contained in:
parent
90230c4691
commit
77eecaca34
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user