Relative Content

Tag Archive for c#asp.net.netjwtback

How to read JWT token data with correct typing C#

I have a problem when reading the data saved in JWT, it is returning everything as a string, the correct thing would be to ensure that the returned values ​​are in the correct typing, for example the firstAccess field saves a boolean true or false but is returning a string “true” or “false”, I believe that this is not a good practice. How can I ensure that it returns the correct typing?