exportPublicJwk
Export a public key as a JSON Web Key.
ts
function exportPublicJwk(
publicKey: CryptoKey,
): Promise<JsonWebKey>Parameters
publicKey:CryptoKey
Examples
ts
const keys = await generateKeyPair({ kind: 'ecdsa', curve: 'P-256' });
const jwk = await exportPublicJwk(keys.publicKey);