diff --git a/index.php b/index.php index 2009f85..0f466a1 100755 --- a/index.php +++ b/index.php @@ -20,7 +20,8 @@ // Grant access to Video $grant = new VideoGrant(); -$grant->setRoom($room); +//$grant->setRoom($room); $token->addGrant($grant); -echo $token->toJWT(); +header('Content-Type: application/json; charset=utf-8'); +echo '{"identity":"'.$identity.'","token":"'.$token->toJWT().'" }';