Rearranged readme
This commit is contained in:
19
README.md
19
README.md
@@ -4,8 +4,14 @@ A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers.
|
|||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [Usage](#usage)
|
|
||||||
- [Install](#install)
|
- [Install](#install)
|
||||||
|
- [Usage](#usage)
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i @tsndr/cloudflare-worker-jwt
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -68,13 +74,4 @@ Argument | Type | Satus | Default | Description
|
|||||||
`token` | `string` | required | - | The token string generated by `jwt.sign()`.
|
`token` | `string` | required | - | The token string generated by `jwt.sign()`.
|
||||||
|
|
||||||
#### `return`
|
#### `return`
|
||||||
returns payload `object`
|
returns payload `object`
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
```
|
|
||||||
npm i @tsndr/cloudflare-worker-jwt
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user