diff --git a/src/League/OAuth2/Server/Resource.php b/src/League/OAuth2/Server/Resource.php index 849f481c..647441c9 100644 --- a/src/League/OAuth2/Server/Resource.php +++ b/src/League/OAuth2/Server/Resource.php @@ -194,7 +194,7 @@ class Resource $sessionScopes = $this->storages['session']->getScopes($this->accessToken); foreach ($sessionScopes as $scope) { - $this->sessionScopes[] = $scope['key']; + $this->sessionScopes[] = $scope['scope']; } return true;