Merge pull request #5448 from pixelfed/staging

Update oauth/token, fix scope to be space separated string instead of…
pull/5449/head^2
daniel 2 months ago committed by GitHub
commit 7fe6dad609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save