Skip to content

Commit a4cd5c6

Browse files
authored
Authentik: change method to public and fix return (#1084)
1 parent 9fb3b91 commit a4cd5c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Provider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,18 @@ protected function getUserByToken($token)
6767
/**
6868
* {@inheritdoc}
6969
*/
70-
protected function refreshToken($refreshToken)
70+
public function refreshToken($refreshToken)
7171
{
72-
return $this->getHttpClient()->post($this->getTokenUrl(), [
72+
$response = $this->getHttpClient()->post($this->getTokenUrl(), [
7373
RequestOptions::FORM_PARAMS => [
7474
'client_id' => $this->clientId,
7575
'client_secret' => $this->clientSecret,
7676
'grant_type' => 'refresh_token',
7777
'refresh_token' => $refreshToken,
7878
],
7979
]);
80+
81+
return json_decode((string) $response->getBody(), true);
8082
}
8183

8284
/**

0 commit comments

Comments
 (0)