This commit is contained in:
Daniel Supernault 2025-01-05 13:49:13 -07:00
parent bbe447244d
commit fc8709bc4b
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -17,7 +17,7 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
{
return [
'scopes' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()),
'scope' => array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes()),
'created_at' => time(),
];
}