How to add custom claims to JWT

I found an interesting issue on Stack Overflow about this

Hopefully it helps: c# - JWT How to add custom claims and decode claims - Stack Overflow