mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 14:40:46 +00:00
Update oauth/token, fix scope to be space separated string instead of array
This commit is contained in:
parent
3749267260
commit
4ce6e610bd
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke
|
|||
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
|
||||
{
|
||||
return [
|
||||
'scope' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()),
|
||||
'scope' => implode(' ', array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes())),
|
||||
'created_at' => time(),
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue