Nice article Taiwo, thanks for sharing. This however begs the question why do you want to encrypt your jwt since at the end of the day, you're sending it to the Frontend (unless it's for server to server communication).
One major catch for jwt is do they can be decrypted on the client side and the data displayed to the user or used for some basic controls.
When you encrypt that, you will have to share the encryption key with the frontend which makes it unsafe anymore.
What is your thought on this?
Software Developer