Open jennyf19 opened 4 months ago
ClaimsPrincipal and ClaimsIdentity are both from dotnet/runtime, not this repository. And they can't use JsonWebToken because that comes from this repository (inverted layering).
It would be a derived class from ClaimsIdentity, @bartonjs, not a re-implementation of ClaimsIdenitty.
Improve the performance of ClaimsPrincipal and ClaimsIdentity by backing them by a JsonWebToken, instead of an array of Claims, to remove un-necessary allocations, and improve performance from o(N) to o(1).