Skip to content

Commit d6a29c1

Browse files
committed
removes auth library caching
1 parent e2fae18 commit d6a29c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Google/Client.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,11 @@ private function createApplicationDefaultCredentials()
10561056

10571057
protected function getAuthHandler()
10581058
{
1059-
return Google_AuthHandler_AuthHandlerFactory::build($this->getCache());
1059+
// we intentionally do not use the cache because
1060+
// the underlying auth library's cache implementation
1061+
// is broken.
1062+
// @see https://github.com/google/google-api-php-client/issues/821
1063+
return Google_AuthHandler_AuthHandlerFactory::build();
10601064
}
10611065

10621066
private function createUserRefreshCredentials($scope, $refreshToken)

0 commit comments

Comments
 (0)