mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Pass the token instead of string
This commit is contained in:
parent
f78caa24bb
commit
8b4b884a03
@ -46,7 +46,7 @@ class RefreshToken extends AbstractToken
|
|||||||
public function getAccessToken()
|
public function getAccessToken()
|
||||||
{
|
{
|
||||||
if (! $this->accessToken instanceof AccessToken) {
|
if (! $this->accessToken instanceof AccessToken) {
|
||||||
$this->accessToken = $this->server->getStorage('access_token')->getByRefreshToken($this->getToken());
|
$this->accessToken = $this->server->getStorage('access_token')->getByRefreshToken($this);
|
||||||
}
|
}
|
||||||
return $this->accessToken;
|
return $this->accessToken;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user