Skip to content

Commit feab52d

Browse files
committed
use google/auth 0.9 (#970)
1 parent cd4d616 commit feab52d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "Apache-2.0",
88
"require": {
99
"php": ">=5.4",
10-
"google/auth": "0.8",
10+
"google/auth": "0.9",
1111
"google/apiclient-services": "*@dev",
1212
"firebase/php-jwt": "~2.0|~3.0",
1313
"monolog/monolog": "^1.17",

src/Google/Client.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,8 +1048,7 @@ private function createApplicationDefaultCredentials()
10481048
'private_key' => $signingKey,
10491049
'type' => 'service_account',
10501050
);
1051-
$keyStream = Psr7\stream_for(json_encode($serviceAccountCredentials));
1052-
$credentials = CredentialsLoader::makeCredentials($scopes, $keyStream);
1051+
$credentials = CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials);
10531052
} else {
10541053
$credentials = ApplicationDefaultCredentials::getCredentials($scopes);
10551054
}

0 commit comments

Comments
 (0)