diff --git a/app/Auth/BearerTokenResponse.php b/app/Auth/BearerTokenResponse.php index 0e1aa8a19..c9dc0a602 100644 --- a/app/Auth/BearerTokenResponse.php +++ b/app/Auth/BearerTokenResponse.php @@ -11,13 +11,13 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke * AuthorizationServer::getResponseType() to pull in your version of * this class rather than the default. * - * @param AccessTokenEntityInterface $accessToken * * @return array */ protected function getExtraParams(AccessTokenEntityInterface $accessToken) { return [ + 'scopes' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()), 'created_at' => time(), ]; }