From 8b4b884a03d27aaeddd66e3b127b1a549132c087 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 1 May 2014 14:47:01 +0100 Subject: [PATCH] Pass the token instead of string --- src/Entity/RefreshToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/RefreshToken.php b/src/Entity/RefreshToken.php index 4fc2cc92..a41c1991 100644 --- a/src/Entity/RefreshToken.php +++ b/src/Entity/RefreshToken.php @@ -46,7 +46,7 @@ class RefreshToken extends AbstractToken public function getAccessToken() { 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; }