diff --git a/config/auth.php b/config/auth.php index 9fb3dc3..9f85f04 100644 --- a/config/auth.php +++ b/config/auth.php @@ -42,6 +42,9 @@ // JWT time to live (in minutes) 'ttl' => env('JWT_TTL', 60), + // JWT time to live for Refresh Token (in minutes) + 'refresh_ttl' => env('JWT_REFRESH_TTL', (60*24*30*6)), + // JWT hashing algorithm 'alg' => env('JWT_ALGO', 'HS256'), diff --git a/config/route.php b/config/route.php index 80e5ea1..f0881bd 100644 --- a/config/route.php +++ b/config/route.php @@ -10,6 +10,8 @@ */ 'middleware' => [ // \Nur\Http\Middleware\CorsMiddleware::class, + \Nur\Http\Middleware\TrimStrings::class, + \Nur\Http\Middleware\ConvertEmptyStringsToNull::class, ], /**