protected function checkClientId()
{
$token = $this->tokenStorage->getToken();
if ($token === null || !$token instanceof ClientToken) {
throw new ServerErrorException(['error_description' => 'The authorization server encountered an unexpected condition that prevented it from fulfilling the request.']);
}
return $token->getClientId();
}