Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobaccan authored Dec 19, 2023
1 parent 86fe3fc commit 8e4af9f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,16 @@ To create a token you must
oJWT := &("JWT():new()")
```
3. Configure a valid header, setting Type = JWT and an available Algorithm. At the moment the Algorithms available are: HS256, HS384, and HS512
3. Configure a valid header, setting Type = JWT and an available Algorithm.
At the moment the Algorithms available are: HS256, HS384, and HS512
```xBase
// Header
oJWT:setAlgorithm("HS256")
oJWT:setType("JWT")
```
4. Load a payload. The properties permitted in a payload are:
5. Load a payload. The properties permitted in a payload are:
```xBase
METHOD SetIssuer( cIssuer )
Expand All @@ -82,14 +83,14 @@ To create a token you must
oJWT:setIssuedAt(1516239022)
```
5. Finally you must indicate a secret
6. Finally you must indicate a secret
```xBase
// Secret
oJWT:setSecret("your-256-bit-secret")
```
6. Now you can get a token
7. Now you can get a token
```xBase
// Get Token
Expand Down

0 comments on commit 8e4af9f

Please sign in to comment.