You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the setup of this library and I believe it works quite well for the creation of a JWT. However I think there's room to improve on the decode/decrypt side of the fence.
Ideally it'd be great to deal with the ClaimCollection or Claim objects, especially for validating each claim is correct. At the minute, there is logic inside of the verify function for some claims. What if this logic sat on the Claim itself and Jwt simply asked the ClaimsCollection to find out if the token claims were correct?
The text was updated successfully, but these errors were encountered:
I really like the setup of this library and I believe it works quite well for the creation of a JWT. However I think there's room to improve on the decode/decrypt side of the fence.
Ideally it'd be great to deal with the
ClaimCollection
orClaim
objects, especially for validating each claim is correct. At the minute, there is logic inside of theverify
function for some claims. What if this logic sat on theClaim
itself andJwt
simply asked theClaimsCollection
to find out if the token claims were correct?The text was updated successfully, but these errors were encountered: