createJwksKeyResolver
createJwksKeyResolver
Creates a key resolver over a fixed JWK Set.
The resolver selects with selectJwk and imports each key once, so repeated verifications reuse the same CryptoKey. Keep one resolver per trusted source/snapshot and replace it when that snapshot changes so removed keys do not survive rotation.
ts
function createJwksKeyResolver(
jwks: Jwks,
): JwsKeyResolverParameters
jwks:Jwks
See also
- https://micro509.kjanat.dev/guide/jose-cache for application-owned raw JWKS caches.