From 02756f583d5a3f0c0c8ab108a1877cace952969c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 13 Dec 2023 11:52:04 -0800 Subject: [PATCH] fix: php warning in AuthTokenMiddleware --- src/Middleware/AuthTokenMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/AuthTokenMiddleware.php b/src/Middleware/AuthTokenMiddleware.php index b10cf9bff..798766efa 100644 --- a/src/Middleware/AuthTokenMiddleware.php +++ b/src/Middleware/AuthTokenMiddleware.php @@ -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);