소스 검색

fix: token now lasts 4 hours

EduLascala 4 달 전
부모
커밋
da9bbe7f45
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      controllers/LoginController.php

+ 1 - 1
controllers/LoginController.php

@@ -40,7 +40,7 @@ class LoginController
             'role_id' => $user['role_id'],
             'company_id' => $user['company_id'],
             'iat' => time(),
-            'exp' => time() + 3600  // 1 hora
+            'exp' => time() + 14400  // 4 horas
         ];
         $jwt = JWT::encode($payload, $_ENV['JWT_SECRET'], 'HS256');