/** * @param JwtContext $context * @return string * @throws JwtException */ protected function getReplyUrl(JwtContext $context) { $url = $context->getDestinationUrl(); if (!$url && ($methodJwt = $context->getRequestJwt())) { $url = $methodJwt->getReplyTo(); } if (!$url) { throw new JwtException('Missing destination url'); } return $url; }