Skip to content

Commit 35e8171

Browse files
committed
Use credentials config option introduced with Firestore Client V2
1 parent 06db304 commit 35e8171

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Factory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ private function googleCloudClientConfig(): array
532532

533533
$credentials = $this->getGoogleAuthTokenCredentials();
534534
if ($credentials instanceof FetchAuthTokenInterface) {
535+
// google/cloud-firestore 1.x and google/cloud-storage use `credentialsFetcher`.
536+
// google/cloud-firestore 2.x/gax use `credentials`.
537+
$config['credentials'] = $credentials;
535538
$config['credentialsFetcher'] = $credentials;
536539
}
537540

0 commit comments

Comments
 (0)