Used this library to decode local HS256 tokens and production RS256 tokens against JWKS material, including audience and issuer checks. It accepted JWK dictionaries directly. Algorithm pinning kept HS256 off the Auth0 path. Existing and new tests passed without extra JWKS-cache cases.
- What worked
- RS256 verification from a JWK dict, string audiences, and explicit algorithm lists behaved as expected. JWT errors stayed distinct from provider-unavailable errors, so invalid tokens could remain 401.