mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
[core] Fix: Read refresh token from database
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a7533cbd8b
commit
5922c29e93
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ func (s Service) GetBotTwitchClient(cfg ClientConfig) (*twitch.Client, error) {
|
||||||
return nil, errors.Wrap(err, "getting bot access token from database")
|
return nil, errors.Wrap(err, "getting bot access token from database")
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = s.db.ReadEncryptedCoreMeta(coreMetaKeyBotToken, &botAccessToken); err != nil && !errors.Is(err, database.ErrCoreMetaNotFound) {
|
if err = s.db.ReadEncryptedCoreMeta(coreMetaKeyBotRefreshToken, &botRefreshToken); err != nil && !errors.Is(err, database.ErrCoreMetaNotFound) {
|
||||||
return nil, errors.Wrap(err, "getting bot refresh token from database")
|
return nil, errors.Wrap(err, "getting bot refresh token from database")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue