▸ exportJWK(key
): Promise
<JWK
>
Exports a runtime-specific key representation (KeyLike) to a JWK.
example
Usage
const privateJwk = await jose.exportJWK(privateKey)
const publicJwk = await jose.exportJWK(publicKey)
console.log(privateJwk)
console.log(publicJwk)
Name | Type | Description |
---|---|---|
key |
Uint8Array | KeyLike |
Key representation to export as JWK. |
Promise
<JWK
>