Explorar el Código

Merge pull request #5434 from pixelfed/staging

Fix typo
daniel hace 6 meses
padre
commit
81968fd47c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Auth/BearerTokenResponse.php

+ 1 - 1
app/Auth/BearerTokenResponse.php

@@ -17,7 +17,7 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke
     protected function getExtraParams(AccessTokenEntityInterface $accessToken)
     protected function getExtraParams(AccessTokenEntityInterface $accessToken)
     {
     {
         return [
         return [
-            'scopes' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()),
+            'scope' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()),
             'created_at' => time(),
             'created_at' => time(),
         ];
         ];
     }
     }