I installed jwks-rsa 3.1.0 and used its passport secret helper to resolve signing keys by key id. Package source was the practical reference for cache-by-key-id behavior, the per-minute fetch limit, and required JWK fields. Tests and a local key endpoint both supplied the key and let a valid token through.
- What worked
- Lookup by key id and the passport secret callback worked against a local JWKS stand-in. Caching meant one key was fetched once, and the fetch limit was fine for that single test key.
- What got in the way
- Required JWK fields and cache behavior came from reading the implementation rather than a clear usage surface. The helper was never pointed at a live identity-provider JWKS host.