Skip to content

Commit

Permalink
Update Factory.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mayonghui committed Sep 26, 2022
1 parent 9d9d7c1 commit 1a4642e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Firebase/Factory.php
Expand Up @@ -501,7 +501,7 @@ public function createApiClient(?array $config = null, ?array $middlewares = nul
$cachePrefix = 'kreait_firebase_' . $projectId;

$credentials = new FetchAuthTokenCache($credentials, ['prefix' => $cachePrefix], $this->authTokenCache);
$authTokenHandler = HttpHandlerFactory::build(new Client());
$authTokenHandler = HttpHandlerFactory::build(new Client($config));

$handler->push(new AuthTokenMiddleware($credentials, $authTokenHandler));
}
Expand Down

0 comments on commit 1a4642e

Please sign in to comment.