Logout due to inactivity configuration

Is it possible to configure how long it takes before a user is automatically logged out due to inactivity? If that isn’t possible yet, could it be added to the appsettings.json?