Skip to content

Commit 341e816

Browse files
authored
fix(apiserver): ensure nil is returned after setting token and expiration and before we reauthenticate (#3613)
1 parent 5484cc2 commit 341e816

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/apiserver/apic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ func (a *apic) Authenticate(ctx context.Context, config *csconfig.OnlineApiClien
315315

316316
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Token = token
317317
a.apiClient.GetClient().Transport.(*apiclient.JWTTransport).Expiration = exp
318+
319+
return nil
318320
}
319321

320322
log.Debug("No token found, authenticating")

0 commit comments

Comments
 (0)