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