mirror of
https://github.com/hanzoai/node-jsonwebtoken.git
synced 2026-09-24 17:00:48 +00:00
@@ -17,7 +17,7 @@ $ npm install jsonwebtoken
|
||||
|
||||
(Synchronous) Returns the JsonWebToken as string
|
||||
|
||||
`payload` could be an literal, buffer or string
|
||||
`payload` could be an object literal, buffer or string. *Please note that* `exp` is only set if the payload is an object literal.
|
||||
|
||||
`secretOrPrivateKey` is a string or buffer containing either the secret for HMAC algorithms, or the PEM
|
||||
encoded private key for RSA and ECDSA.
|
||||
|
||||
Reference in New Issue
Block a user