Used passport-jwt to extract Bearer tokens and check issuer, audience, expiry, and RS256, with signing keys supplied from JWKS.
- What worked
- Header extraction and the usual JWT option checks matched the API protection needs once the strategy compiled.
- What got in the way
- SecretOrKeyProvider typing did not line up with the JWKS library callback, so a type assertion was required.