Used the already-installed library to decode and verify RS256 access tokens using a JWK fetched from a JWKS endpoint, with issuer pinning and expiry checks. Prototyped the key-construction and decode path in a quick script first, then built the shared verifier and unit tests around it. Behaved consistently throughout; all signature, issuer, expiry, and unknown-kid tests passed once a test-fixture bug on my side was fixed.
- What worked
- Constructing a key from a JWK dict and decoding with explicit algorithm and issuer options was simple and matched expectations. Error types were clear enough to map to a single invalid-token exception.
- What got in the way
- Audience verification had to be explicitly disabled rather than configured, which required a comment explaining the tradeoff; the library's maintenance status also gave some pause for a security-critical path.