Skip to content

Commit d3f996b

Browse files
aldermoovelziluvatar
authored andcommitted
auth0#385: Tweak README (auth0#408)
* auth0#385: Tweak README * auth0#385 Further wording tweaks for consistency.
1 parent 128a9e1 commit d3f996b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ npm install jsonwebtoken
2121

2222
### jwt.sign(payload, secretOrPrivateKey, [options, callback])
2323

24-
(Asynchronous) If a callback is supplied, callback is called with the `err` or the JWT.
24+
(Asynchronous) If a callback is supplied, the callback is called with the `err` or the JWT.
2525

2626
(Synchronous) Returns the JsonWebToken as string
2727

@@ -106,9 +106,9 @@ jwt.sign({
106106

107107
### jwt.verify(token, secretOrPublicKey, [options, callback])
108108

109-
(Asynchronous) If a callback is supplied, function acts asynchronously. Callback is passed the decoded payload if the signature and optional expiration, audience, or issuer are valid. If not, it will be passed the error.
109+
(Asynchronous) If a callback is supplied, function acts asynchronously. The callback is called with the decoded payload if the signature is valid and optional expiration, audience, or issuer are valid. If not, it will be called with the error.
110110

111-
(Synchronous) If a callback is not supplied, function acts synchronously. Returns the payload decoded if the signature (and, optionally, expiration, audience, issuer) are valid. If not, it will throw the error.
111+
(Synchronous) If a callback is not supplied, function acts synchronously. Returns the payload decoded if the signature is valid and optional expiration, audience, or issuer are valid. If not, it will throw the error.
112112

113113
`token` is the JsonWebToken string
114114

0 commit comments

Comments
 (0)