Skip to content

Commit

Permalink
[Key Vault Keys] Fixed wrong method in a readme sample (#11601)
Browse files Browse the repository at this point in the history
The readme sample for the `sign` method of the CryptographyClient was using `signData`.

Fixes #11493

@zzhxiaofeng thank you!

Reviews appreciated.
  • Loading branch information
sadasant authored Oct 2, 2020
1 parent 38fb9b0 commit c7f70e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-keys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ async function main() {
let digest = hash.update(signatureValue).digest();
console.log("digest: ", digest);

const signResult = await cryptographyClient.signData("RS256", digest);
const signResult = await cryptographyClient.sign("RS256", digest);
console.log("sign result: ", signResult.result);
}

Expand Down

0 comments on commit c7f70e6

Please sign in to comment.