yingzi 1 year ago
parent
commit
c7c696261e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/traits/JwtAuthModelTrait.php

+ 1 - 1
library/traits/JwtAuthModelTrait.php

@@ -39,7 +39,7 @@ trait JwtAuthModelTrait
             'aud' => $host,
             'iat' => $time,
             'nbf' => $time,
-            'exp' => strtotime('+ 3hour'),
+            'exp' => strtotime('+ 12hour'),
         ];
         $params['jti'] = compact('id', 'type');
         $token = JWT::encode($params, Env::get('app.app_key', 'default'));