We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e35c3 commit d8f2407Copy full SHA for d8f2407
laravel/app/Http/Controllers/Api/ConfigController.php
@@ -28,7 +28,7 @@ public function __construct(Request $request)
28
// 这样的结果是,token 只能在有效期以内进行刷新,过期无法刷新
29
// 如果把 refresh 也放进去,token 即使过期但仍在刷新期以内也可刷新
30
// 不过刷新一次作废
31
- // $this->middleware(['auth:api', 'role']);
+ $this->middleware(['auth:api', 'role']);
32
// 另外关于上面的中间件,官方文档写的是『auth:api』
33
// 但是我推荐用 『jwt.auth』,效果是一样的,但是有更加丰富的报错信息返回
34
0 commit comments