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 () {