Skip to content

Commit 7b9e312

Browse files
committed
Update README.md
1 parent e009505 commit 7b9e312

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,6 +3066,10 @@ There are some advantages of using JWT for authorization:
30663066

30673067
JSON Web Tokens consist of three parts separated by dots (.), which are:
30683068

3069+
```js
3070+
jwt.sign(payload, secretOrPrivateKey, [options, callback])
3071+
```
3072+
30693073
* **Header** - Consists of two parts: the type of token (i.e., JWT) and the signing algorithm (i.e., HS512)
30703074
* **Payload** - Contains the claims that provide information about a user who has been authenticated along with other information such as token expiration time.
30713075
* **Signature** - Final part of a token that wraps in the encoded header and payload, along with the algorithm and a secret

0 commit comments

Comments
 (0)