From 6ed1313fcf57f6d98cca5590817a7be811088654 Mon Sep 17 00:00:00 2001 From: Welsiton Ferreira Date: Thu, 31 Mar 2022 00:07:35 -0300 Subject: [PATCH] #325 array_merge for getParams() in create token --- src/OAuth2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth2.php b/src/OAuth2.php index a55698d..45411dc 100644 --- a/src/OAuth2.php +++ b/src/OAuth2.php @@ -199,7 +199,7 @@ public function refreshAccessToken(OAuthToken $token) $response = $this->sendRequest($request); - $token = $this->createToken(['params' => $response]); + $token = $this->createToken(['params' => array_merge($token->getParams(), $response)]); $this->setAccessToken($token); return $token;