Generating JWT's using the Auth0 library
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis7jjem1nrlIr7AS8-Du_NxdgxXgM1CwJYSTdenH2A_ibrnEsXY8_tvINJMp0OoBwVRxUnwmTFa9VuY7EHmlseT4vCIsmL7EePiFso1jhhju_sn7fSTNNLFxAInZ1E8pwRZ4skGFyf_EFcl06iFny-gNUcg06GYD0lrjQJn1qdyyEVTO2VdY-8fg/w200-h175/lock-square.jpg)
I've created a small example set of code to generate and learn about JWTs . This code allows you to create and sign your own JWT. You can create your own public/private keys to sign and verify the tokens. In and of itself this code would not likely be used for a production environment but knowing how a JWT works and the part of it are an important part of understanding Oauth2 in general. I've got some future code to show you how to use a JWT in more of a production environment but this is useful to learn from. Photo by Maick Maciel on Unsplash