diff --git a/src/OAuth2/ResourceServer.php b/src/OAuth2/ResourceServer.php index 59219a0d..c70f67b0 100644 --- a/src/OAuth2/ResourceServer.php +++ b/src/OAuth2/ResourceServer.php @@ -177,7 +177,7 @@ class ResourceServer $this->ownerType = $result['owner_type']; $this->ownerId = $result['owner_id']; - $this->sessionScopes = $this->storages['session']->getScopes($this->sessionId); + $this->sessionScopes = $this->storages['session']->getScopes($this->accessToken); return true; }