import { exportJWK } from "https://deno.land/x/jose@v4.11.2/key/export.ts";
Exports a runtime-specific key representation (KeyLike) to a JWK.
Examples
Usage
Usage
const privateJwk = await jose.exportJWK(privateKey)
const publicJwk = await jose.exportJWK(publicKey)
console.log(privateJwk)
console.log(publicJwk)
Parameters
key: KeyLike | Uint8Array
Key representation to export as JWK.