Imports a JSON Web Key Set (JWKS) from a remote URL for verification.
This method fetches public keys dynamically from an external endpoint.
The URL of the remote JWKS endpoint.
Options for fetching the keys, including the expected algorithm.
A promise that resolves to an array containing the imported public key.
const publicKeys = await JWK.importRemote(new URL("https://example.com/.well-known/jwks.json"), { alg: JWK.Algoritm.ES256 });console.log(publicKeys); Copy
const publicKeys = await JWK.importRemote(new URL("https://example.com/.well-known/jwks.json"), { alg: JWK.Algoritm.ES256 });console.log(publicKeys);
Imports a JSON Web Key Set (JWKS) from a remote URL for verification.
This method fetches public keys dynamically from an external endpoint.