From 9e93a50c6311a8fb04fdce20646d3c0b2c433a0f Mon Sep 17 00:00:00 2001 From: TParis Date: Wed, 24 Feb 2021 23:11:15 -0600 Subject: [PATCH] Update GoogleOAuth2Handler.php Allow options --- src/GoogleOAuth2Handler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GoogleOAuth2Handler.php b/src/GoogleOAuth2Handler.php index efb4139..7cf87ac 100644 --- a/src/GoogleOAuth2Handler.php +++ b/src/GoogleOAuth2Handler.php @@ -52,12 +52,12 @@ public function getRefreshToken($authCode) return $accessToken['refresh_token']; } - public function performRequest($method, $url, $body = null) + public function performRequest($method, $url, $body = null, $options = []) { $httpClient = $this->client->authorize(); - $request = new Request($method, $url, [], $body); + $request = new Request($method, $url, $options, $body); $response = $httpClient->send($request); return $response; } -} \ No newline at end of file +}