Skip to content

Commit

Permalink
[BUGFIX] Initialize Response object correctly for revokeAccessToken (#22
Browse files Browse the repository at this point in the history
)

The first parameter must not be empty.
Use named parameters to keep the default.
  • Loading branch information
liayn authored Jun 7, 2024
1 parent bc6661b commit cc72fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/RevokeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public function revokeAccessToken(ServerRequestInterface $request): ResponseInte
{
$tokenId = $request->getAttribute('oauth_access_token_id');
$this->accessTokenRepository->revokeAccessToken($tokenId);
return new Response('', 204);
return (new Response())->withStatus(204);
}
}

0 comments on commit cc72fc7

Please sign in to comment.