/**
  * Generate a new access token for the given request
  *
  * @param  Request       $request
  * @param  Response      $response
  * @param  callable|null $next
  * @return Response
  */
 public function handleTokenRequest(Request $request, Response $response, callable $next = null) : ResponseInterface
 {
     // @TODO: we should integrate with an authentication service to pass the logged user, if any. Currently,
     // it will work out of the box for password grant
     return $this->authorizationServer->handleTokenRequest($request);
 }
 public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) : ResponseInterface
 {
     return $this->authorizationServer->handleTokenRequest($request);
 }