If you are using a JWT plugin like JWT Authentication for WP, you can define the variable JWT_EXPIRE_TIME in wp-config.php file for the timeout in seconds. For example, one day timeout would be: define('JWT_EXPIRE_TIME', '86400');