更新readme
parent
e2433cba13
commit
819361737f
15
Readme.md
15
Readme.md
|
@ -1,4 +1,6 @@
|
||||||
![module info](https://nodei.co/npm/@gm5/jwt.png?downloads=true&downloadRank=true&stars=true)
|
|
||||||
|
![downloads](https://img.shields.io/npm/dt/@gm5/jwt.svg)
|
||||||
|
![version](https://img.shields.io/npm/v/@gm5/jwt.svg)
|
||||||
|
|
||||||
# @gm5/jwt
|
# @gm5/jwt
|
||||||
|
|
||||||
|
@ -14,10 +16,13 @@ npm install @gm5/jwt
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
import Five from '@gm5/code'
|
import { createApp } from '@gm5/code'
|
||||||
import jwt from '@gm5/jwt'
|
import { createJwt, JwtModule } from '@gm5/jwt'
|
||||||
|
|
||||||
var app = new Five()
|
var app = createApp()
|
||||||
app.install(jwt)
|
|
||||||
|
app.install(JwtModule)
|
||||||
|
.use(createJwt())
|
||||||
|
.run()
|
||||||
|
|
||||||
```
|
```
|
Loading…
Reference in New Issue