From b688ce1bf88731c05d1ede7795d7aae9ca362a87 Mon Sep 17 00:00:00 2001 From: "Jan-T. Brinkmann" Date: Fri, 6 Mar 2020 14:36:11 +0100 Subject: [PATCH] Fix readme.md jws.verify section --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2f32dca..903ddc6 100644 --- a/readme.md +++ b/readme.md @@ -70,7 +70,7 @@ const signature = jws.sign({ (Synchronous) Returns `true` or `false` for whether a signature matches a secret or key. -`signature` is a JWS Signature. `header.alg` must be a value found in `jws.ALGORITHMS`. +`signature` is a JWS Signature. `algorithm` must be a value found in `jws.ALGORITHMS`. See above for a table of supported algorithms. `secretOrKey` is a string or buffer containing either the secret for HMAC algorithms, or the PEM encoded public key for RSA and ECDSA.