Skip to content

Commit 733d23f

Browse files
committed
Doc: fix wrong decryption sample code in README.md
2 parents 948132e + 69fcb0d commit 733d23f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ To decrypt a JWE, and retrieve the plaintext:
456456

457457
```
458458
jose.JWE.createDecrypt(keystore).
459-
verify(input).
459+
decrypt(input).
460460
then(function(result) {
461461
// {result} is a Object with:
462462
// * header: the combined 'protected' and 'unprotected' header members
@@ -469,7 +469,7 @@ To decrypt a JWE using an implied key:
469469

470470
```
471471
jose.JWE.createDecrypt(key).
472-
verify(input).
472+
decrypt(input).
473473
then(function(result) {
474474
// ....
475475
});

0 commit comments

Comments
 (0)