Skip to content

Commit

Permalink
yiisoft#325 array_merge for getParams() in create token
Browse files Browse the repository at this point in the history
  • Loading branch information
desenvolvedorindie authored Mar 31, 2022
1 parent c74c898 commit 6ed1313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ed1313

Please sign in to comment.