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

This commit is contained in:
Manuel Sabban 2025-05-07 17:02:04 +02:00 committed by GitHub
parent 5484cc2044
commit 341e816a5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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")