jwt/Readme.md

28 lines
375 B
Markdown
Raw Permalink Normal View History

2023-10-31 18:39:38 +08:00
![downloads](https://img.shields.io/npm/dt/@gm5/jwt.svg)
![version](https://img.shields.io/npm/v/@gm5/jwt.svg)
2020-09-17 19:11:10 +08:00
2020-09-18 14:45:42 +08:00
# @gm5/jwt
2020-09-17 19:11:10 +08:00
2020-09-18 14:45:42 +08:00
> json web token。
2020-09-17 19:11:10 +08:00
## 安装
```bash
2020-09-18 14:45:42 +08:00
npm install @gm5/jwt
2020-09-17 19:11:10 +08:00
```
2020-09-24 14:45:30 +08:00
## 使用
```js
2023-10-31 18:39:38 +08:00
import { createApp } from '@gm5/code'
import { createJwt, JwtModule } from '@gm5/jwt'
var app = createApp()
2020-09-24 14:45:30 +08:00
2023-10-31 18:39:38 +08:00
app.install(JwtModule)
.use(createJwt())
.run()
2020-09-24 14:45:30 +08:00
```