Skip to content

Commit 46b21ee

Browse files
authored
Update README.md
1 parent a464b17 commit 46b21ee

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $ composer require xiaodi/think-jwt
1111
```
1212

1313
## 使用
14-
~~1. 命令生成签名key~~
14+
1. 命令生成签名key
1515
```sh
1616
$ php think jwt:make
1717
```
@@ -44,11 +44,16 @@ return [
4444
'user' => [
4545
'bind' => false,
4646
'model' => '',
47-
],
48-
'blacklist' => [
49-
'cacheKey' => 'admin',
50-
],
47+
]
5148
]
49+
],
50+
'manager' => [
51+
// 缓存前缀
52+
'prefix' => 'jwt',
53+
// 黑名单缓存名
54+
'blacklist' => 'blacklist',
55+
// 白名单缓存名
56+
'whitelist' => 'whitelist'
5257
]
5358
];
5459

@@ -172,9 +177,10 @@ return [
172177
'token' => [
173178
// ...其它配置
174179
'type' => 'Header',
175-
176180
// 'type' => 'Cookie',
177181
// 'type' => 'Url',
182+
// 支持多种方式获取
183+
// 'type' => 'Header|Url',
178184
]
179185
]
180186
]

0 commit comments

Comments
 (0)