Skip to content

Commit eef43ca

Browse files
committed
update
1 parent c90b009 commit eef43ca

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,25 @@ return [
189189

190190
前端需要接收最新 Token,下次异步请求时,携带此 Token。
191191

192-
## 注销应用Token
192+
## 注销应用Token(所有)
193193

194194
注销指定应用下缓存的用户 (强制下线 重新登录)
195195

196196
```php
197197

198198
$store = 'wechat';
199199

200-
app('jwt.manager')->resetStoreWhiteToken($store);
200+
app('jwt.manager')->destroyStoreWhitelist($store);
201+
```
202+
203+
## 注销应用Token(指定某个)
204+
205+
注销指定某个用户(强制下线 重新登录)
206+
207+
```php
208+
209+
$store = 'wechat';
210+
$uid = '9527';
211+
212+
app('jwt.manager')->destroyToken($id, $store);
201213
```

0 commit comments

Comments
 (0)