Daniel Supernault 6 月之前
父節點
當前提交
fc8709bc4b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(),
         ];
     }