Skip to content

Commit

Permalink
interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Oct 3, 2024
1 parent 6d8ea97 commit c79a716
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const signer = async ({ key, algorithm }: { key: web_key_type | any_cose_
privateKey = await crypto.web.web_key_to_crypto_key(key, ['sign'])
}
if (privateKey === undefined) {
throw new Error('Unsupported key')
privateKey = key
}
return crypto.web
.signer({
key: privateKey,
key: privateKey as CryptoKey,
algorithm
})
}

0 comments on commit c79a716

Please sign in to comment.