1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 07:42:41 +00:00

Return access tokens' scopes, not hardcoded list

This commit is contained in:
Emelia Smith 2024-02-08 02:49:35 +01:00
parent 2becd273c4
commit 7b0a6060b2
No known key found for this signature in database

View file

@ -18,8 +18,8 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
{
return [
'created_at' => time(),
'scope' => 'read write follow push'
'created_at' => time(),
'scope' => implode(' ', $accessToken->getScopes())
];
}
}