Create your first JWT - fachsimpeln/EasyJWT GitHub Wiki
The Data container (JWTData)
Creating a JWT is pretty easy. All data is stored in a Data Container Object (JWTData), which also contains the header (JWTOptions) and the signature of the JWT.
This container should not be accessed by the software directly, you should always use (to read/write) the main class JWT!
The Settings Object (JWTOptions)
This object contains the settings for your JWT. Currently you can only set the algorithm, by default it is HS256.
The Reserved Claims Object (JWTReservedClaims)
This object provides all reserved claims. These claims can be used to share information with other libraries - as they are mostly understood by any library - and, of course, to organize, validate and handle the JWTs.
The Main JSON Web Token Class (JWT)
After you have created your data container, the next step is to use the JWT to interact with it.
This class validates JWTs and can distribute them to the browser or display them as a string.