Skip to content

Commit ede8828

Browse files
committed
[README] Re-order usage
1 parent b30f707 commit ede8828

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ pod 'JWT'
1414

1515
## Usage
1616

17-
### Decoding a JWT
18-
1917
```swift
2018
import JWT
21-
22-
JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w")
2319
```
2420

2521
### Encoding a claim
@@ -28,6 +24,12 @@ JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E
2824
JWT.encode(["my": "payload"], .HS256("secret"))
2925
```
3026

27+
### Decoding a JWT
28+
29+
```swift
30+
JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w")
31+
```
32+
3133
#### Supported claims
3234

3335
- Issuer (`iss`) Claim

0 commit comments

Comments
 (0)