We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fb3b91 commit a4cd5c6Copy full SHA for a4cd5c6
Provider.php
@@ -67,16 +67,18 @@ protected function getUserByToken($token)
67
/**
68
* {@inheritdoc}
69
*/
70
- protected function refreshToken($refreshToken)
+ public function refreshToken($refreshToken)
71
{
72
- return $this->getHttpClient()->post($this->getTokenUrl(), [
+ $response = $this->getHttpClient()->post($this->getTokenUrl(), [
73
RequestOptions::FORM_PARAMS => [
74
'client_id' => $this->clientId,
75
'client_secret' => $this->clientSecret,
76
'grant_type' => 'refresh_token',
77
'refresh_token' => $refreshToken,
78
],
79
]);
80
+
81
+ return json_decode((string) $response->getBody(), true);
82
}
83
84
0 commit comments