Return access tokens' scopes, not hardcoded list

pull/4911/head
Emelia Smith 2024-02-08 02:49:35 +01:00
rodzic 2becd273c4
commit 7b0a6060b2
Nie znaleziono w bazie danych klucza dla tego podpisu
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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())
];
}
}