diff --git a/src/Credentials/ServiceAccountJwtAccessCredentials.php b/src/Credentials/ServiceAccountJwtAccessCredentials.php index 16c7d59ca..8b2fb9454 100644 --- a/src/Credentials/ServiceAccountJwtAccessCredentials.php +++ b/src/Credentials/ServiceAccountJwtAccessCredentials.php @@ -151,7 +151,11 @@ public function fetchAuthToken(callable $httpHandler = null) // Set the self-signed access token in OAuth2 for getLastReceivedToken $this->auth->setAccessToken($access_token); - return ['access_token' => $access_token]; + return [ + 'access_token' => $access_token, + 'expires_in' => $this->auth->getExpiry(), + 'token_type' => 'Bearer' + ]; } /**