You can extend the login expire time with config\session.php this file location. Just update lifetime the value of the variable. By default it is 'lifetime' => 120. According to your requirement update this variable.

BY Best Interview Question ON 01 Mar 2023

Example

'lifetime' => 180