Skip to content

Commit

Permalink
fix: php warning in AuthTokenMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 13, 2023
1 parent b687d5e commit 02756f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/AuthTokenMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private function addAuthHeaders(RequestInterface $request)
) {
$token = $this->fetcher->fetchAuthToken();
$request = $request->withHeader(
'authorization', 'Bearer ' . ($token['access_token'] ?? $token['id_token'])
'authorization', 'Bearer ' . ($token['access_token'] ?? $token['id_token'] ?? '')
);
} else {
$headers = $this->fetcher->updateMetadata($request->getHeaders(), null, $this->httpHandler);
Expand Down

0 comments on commit 02756f5

Please sign in to comment.