fix(apiserver): ensure nil is returned after setting token and expiration and before we reauthenticate

This commit is contained in:
sabban 2025-05-07 16:27:31 +02:00
parent 5484cc2044
commit 20c0b12824

View file

@ -315,6 +315,8 @@ func (a *apic) Authenticate(ctx context.Context, config *csconfig.OnlineApiClien
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Token = token
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Expiration = exp
return nil
}
log.Debug("No token found, authenticating")