Skip to content

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,
): JwsKeyResolver

Parameters

See also

Released under the MIT License.