User-491950272 posted
I've never done such a demo practically, but I've some suggestions here are:
Use jQuery to listen to the Mouse Move (mousemove) event and make a form post open setting time as
var timeout = null;
$(document).on('mousemove', function() {
clearTimeout(timeout);
timeout = setTimeout(function() {
$('#form').submit();
}, 3000); // for example for 3 seconds of idle pointer.
});
And in the post action of the form, just use
await _signInManager.SignOutAsync();
To get the user log out.