Imports a JSON Web Key Set (JWKS) for local verification.
This allows JWTs to be verified against a predefined set of public keys.
The JSON Web Key Set containing the public keys.
Optional
Optional settings, including the algorithm to use.
A promise that resolves to an array containing the imported public key.
const publicKeys = await JWK.importLocal(jwks, { alg: JWK.Algoritm.ES256 });console.log(publicKeys); Copy
const publicKeys = await JWK.importLocal(jwks, { alg: JWK.Algoritm.ES256 });console.log(publicKeys);
Imports a JSON Web Key Set (JWKS) for local verification.
This allows JWTs to be verified against a predefined set of public keys.