CrazyTapok-bit / tgWebValid

An easy way to validate Telegram Login Widget and Telegram Mini App users on your website using PHP
https://tgwebvalid.com
MIT License
52 stars 13 forks source link

Check json for errors #74

Open CrazyTapok-bit opened 6 months ago

CrazyTapok-bit commented 6 months ago

The json_decode function may issue an error if the string passed is not really json, or json but contains syntax errors. Therefore, it is necessary to finalize the handler and check for errors

https://github.com/CrazyTapok-bit/tgWebValid/blob/4876bd8809360dcfbf11b3154df3f88b505c6d3d/src/Make/Make.php#L55