If you are using fastjson 1.2.x, you can use the compatibility package. The compatibility package cannot guarantee 100% compatibility. Please test it yourself and report any problems.
Secure authentication using JSON Web Tokens (JWT) RESTful API development with Laravel Step-by-step implementation for learning and reference What is JWT? JSON Web Tokens (JWT) are used to securely ...