| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /*
- * This file is part of jwt-auth.
- *
- * (c) Sean Tymon <tymon148@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- return [
- 'secret' => env('JWT_SECRET'),
- 'keys' => [
- 'public' => env('JWT_PUBLIC_KEY'),
- 'private' => env('JWT_PRIVATE_KEY'),
- 'passphrase' => env('JWT_PASSPHRASE'),
- ],
- 'ttl' => env('JWT_TTL', 86400 * 2),
- 'refresh_ttl' => env('JWT_REFRESH_TTL', 20160),
- 'algo' => env('JWT_ALGO', 'HS256'),
- 'required_claims' => [
- 'iss',
- 'iat',
- 'exp',
- 'nbf',
- 'sub',
- 'jti',
- ],
- 'persistent_claims' => [
- // 'foo',
- // 'bar',
- ],
- 'lock_subject' => true,
- 'leeway' => env('JWT_LEEWAY', 0),
- 'blacklist_enabled' => env('JWT_BLACKLIST_ENABLED', true),
- 'blacklist_grace_period' => env('JWT_BLACKLIST_GRACE_PERIOD', 0),
- 'decrypt_cookies' => false,
- 'providers' => [
- 'jwt' => Tymon\JWTAuth\Providers\JWT\Lcobucci::class,
- 'auth' => Tymon\JWTAuth\Providers\Auth\Illuminate::class,
- 'storage' => Tymon\JWTAuth\Providers\Storage\Illuminate::class,
- ],
- ];
|