Skip to content

Commit dd8969e

Browse files
committed
add note to explain, related to #96 #101 #6
1 parent f5fa50f commit dd8969e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $ npm install jsonwebtoken
1717

1818
(Synchronous) Returns the JsonWebToken as string
1919

20-
`payload` could be an literal, buffer or string
20+
`payload` could be an object literal, buffer or string. *Please note that* `exp` is only set if the payload is an object literal.
2121

2222
`secretOrPrivateKey` is a string or buffer containing either the secret for HMAC algorithms, or the PEM
2323
encoded private key for RSA and ECDSA.

0 commit comments

Comments
 (0)