diff --git a/src/Oauth2/Server.php b/src/Oauth2/Server.php index 7d6b444d..02be4c5b 100644 --- a/src/Oauth2/Server.php +++ b/src/Oauth2/Server.php @@ -284,9 +284,9 @@ maintenance of the server.' ); // Add the scopes - foreach ($scopes as $scope) { + foreach ($scopes as $key => $scope) { - $this->db->addSessionScope($sessionId, $scope); + $this->db->addSessionScope($sessionId, $scope['scope']); }