In this post, I want to build a small JWT handler in C#. Most of us use a library for JWTs, so it is worth seeing once what the library does for us. We will encode a token, sign it with HMAC-SHA256 and verify it. Then we look at the mistakes that break this kind of code.
This is a learning exercise. Please do not use it in production. For that, use a mai…



