fixed twitch authentication

This commit is contained in:
2025-08-25 12:48:30 +02:00
parent 4e1b4bad0a
commit 4f8510bac8
7 changed files with 61 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ func NewAuthenticationManager(clientId, clientSecret string) *AuthenticationMana
}
func (a *AuthenticationManager) GetAccessToken() (*AccessToken, error) {
if a.accesToken != nil && a.accesToken.Expiry.After(time.Now()) {
if a.accesToken != nil && a.accesToken.Token != "" && a.accesToken.Expiry.After(time.Now()) {
return a.accesToken, nil
}