diff --git a/app/Auth/BearerTokenResponse.php b/app/Auth/BearerTokenResponse.php index c9dc0a602..85050629d 100644 --- a/app/Auth/BearerTokenResponse.php +++ b/app/Auth/BearerTokenResponse.php @@ -17,7 +17,7 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke protected function getExtraParams(AccessTokenEntityInterface $accessToken) { return [ - 'scopes' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()), + 'scope' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()), 'created_at' => time(), ]; }