update: JWT auth config.

This commit is contained in:
weichien00
2021-06-26 03:45:56 +08:00
parent 3426d6b157
commit 38153de7c6
3 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
namespace App\Http;
use App\Http\Middleware\ValidateToken;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
@@ -40,7 +41,7 @@ class Kernel extends HttpKernel
],
'api' => [
'throttle:api',
'throttle:300,1',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];
+3 -3
View File
@@ -14,7 +14,7 @@ return [
*/
'defaults' => [
'guard' => 'web',
'guard' => 'api',
'passwords' => 'users',
],
@@ -42,7 +42,7 @@ return [
],
'api' => [
'driver' => 'token',
'driver' => 'jwt',
'provider' => 'users',
'hash' => false,
],
@@ -96,7 +96,7 @@ return [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
'expire' => 1440,
'throttle' => 60,
],
],
+1 -2
View File
@@ -170,8 +170,7 @@ return [
*/
'persistent_claims' => [
// 'foo',
// 'bar',
'name', 'email', 'type', 'company_id', 'status', 'verification'
],
/*