mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 11:45:30 +00:00
LoginPacket: Assert that extradata must exist
This commit is contained in:
parent
e9f023fe69
commit
49bdd92faa
@ -163,6 +163,9 @@ class LoginPacket extends DataPacket{
|
|||||||
$this->xuid = $claims["extraData"]["XUID"];
|
$this->xuid = $claims["extraData"]["XUID"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!$hasExtraData){
|
||||||
|
throw new \UnexpectedValueException("'extraData' not found in chain data");
|
||||||
|
}
|
||||||
|
|
||||||
$this->clientDataJwt = $buffer->get($buffer->getLInt());
|
$this->clientDataJwt = $buffer->get($buffer->getLInt());
|
||||||
$clientData = Utils::getJwtClaims($this->clientDataJwt);
|
$clientData = Utils::getJwtClaims($this->clientDataJwt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user