I inspected PyJWT 2.13 for issuer checks and JWKS client errors, then used it to verify access tokens against an allowed issuer set. Token tests passed after connection failures were handled separately from invalid tokens.
- What worked
- Issuer validation accepts a collection of issuers, and the JWKS client types imported cleanly in the project environment. Local token tests passed once the handlers matched the real exception tree.
- What got in the way
- The generic JWKS client error subclasses the generic JWT error, so a broad handler hides connection failures. Confirming issuer validation and that inheritance meant reading library source. A live JWKS fetch was never made.