Wednesday, May 10, 2023

Generating JWT's using the Auth0 library

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.

No comments: