1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

View File

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