LoginPacket: Assert that extradata must exist

This commit is contained in:
Dylan K. Taylor 2019-01-11 17:56:18 +00:00
parent e9f023fe69
commit 49bdd92faa

View File

@ -163,6 +163,9 @@ class LoginPacket extends DataPacket{
$this->xuid = $claims["extraData"]["XUID"];
}
}
if(!$hasExtraData){
throw new \UnexpectedValueException("'extraData' not found in chain data");
}
$this->clientDataJwt = $buffer->get($buffer->getLInt());
$clientData = Utils::getJwtClaims($this->clientDataJwt);