Skip to content

Commit

Permalink
refactor: JWK import extractable default for public keys is now true
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 4, 2024
1 parent c80b93a commit 0f4f7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/jwk_to_key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default async (jwk: types.JWK): Promise<types.CryptoKey> => {
const { algorithm, keyUsages } = subtleMapping(jwk)
const rest: [RsaHashedImportParams | EcKeyAlgorithm | Algorithm, boolean, KeyUsage[]] = [
algorithm,
jwk.ext ?? false,
jwk.ext ?? (jwk.d ? false : true),
(jwk.key_ops as KeyUsage[]) ?? keyUsages,
]

Expand Down

0 comments on commit 0f4f7d4

Please sign in to comment.