Skip to content

Commit cb21185

Browse files
committed
Merge branch 'patch-1' of https://github.com/silvermanj7/node-jsonwebtoken into silvermanj7-patch-1
2 parents 653db58 + ccc7610 commit cb21185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ jwt.sign({
9999

100100
### jwt.verify(token, secretOrPublicKey, [options, callback])
101101

102-
(Asynchronous) If a callback is supplied, function acts asynchronously. Callback passed the payload decoded if the signature (and optionally expiration, audience, issuer) are valid. If not, it will be passed the error.
102+
(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.
103103

104-
(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.
104+
(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.
105105

106106
`token` is the JsonWebToken string
107107

0 commit comments

Comments
 (0)