Skip to content
Snippets Groups Projects
Commit 7e2a6901 authored by Dorian Merz's avatar Dorian Merz
Browse files

Merge branch 'instance/fid' into instance/fid_bbi

parents 176b7170 0cd12596
No related merge requests found
......@@ -381,12 +381,12 @@ class Client
RequestInterface $request,
bool $retryOn401 = true
): ResponseInterface {
$token = $this->restoreLogon()->getToken();
$token = ($logon = $this->restoreLogon())->getToken();
$request = $request->withHeader('Authorization', "Bearer $token");
$response = $this->sendRequest($request);
if ($response->getStatusCode() === 401 && $retryOn401) {
$this->refreshLogon();
$this->refreshLogon($logon);
return $this->sendAuthenticatedRequest($request, false);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment