mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
fix(apiserver): ensure nil is returned after setting token and expiration and before we reauthenticate (#3613)
This commit is contained in:
parent
5484cc2044
commit
341e816a5c
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue