Pass the token instead of string

This commit is contained in:
Alex Bilbie 2014-05-01 14:47:01 +01:00
parent f78caa24bb
commit 8b4b884a03

View File

@ -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;
} }