From a2ccde92409d883eda1ca00306fc666e04904259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Fri, 28 Jan 2022 21:41:36 +0900 Subject: [PATCH] =?UTF-8?q?BE=E5=81=B4=E3=81=A7login=E6=99=82=E3=81=ABexpi?= =?UTF-8?q?re=E3=82=BF=E3=82=A4=E3=83=A0=E3=82=92=E9=80=81=E3=82=8B?= =?UTF-8?q?=E3=81=93=E3=81=A8=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=BE=E3=81=99?= =?UTF-8?q?=E3=81=8B=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/Http/Controllers/Api/AuthenticationTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/Http/Controllers/Api/AuthenticationTrait.php b/backend/app/Http/Controllers/Api/AuthenticationTrait.php index bf3588dc..76ef7242 100644 --- a/backend/app/Http/Controllers/Api/AuthenticationTrait.php +++ b/backend/app/Http/Controllers/Api/AuthenticationTrait.php @@ -127,7 +127,7 @@ trait AuthenticationTrait { // セッションを想像する $login_user_datum = $this->makeSession($this->getGuard(), $get->toArray()); - return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id']]]; + return ['status_code' => 200, 'params' => ['id' => $login_user_datum['id'], 'expire' => env('SESSION_LIFETIME')]]; } public function logout () {