Sfoglia il codice sorgente

Merge pull request #5434 from pixelfed/staging

Fix typo
daniel 6 mesi fa
parent
commit
81968fd47c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)
     {
         return [
-            'scopes' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()),
+            'scope' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()),
             'created_at' => time(),
         ];
     }