Detecting inactive users and resetting login time

  • I’m trying to extend the login time by detecting inactive users.
  • Can the above function be implemented using local storage?
  • When the user clicks, scrolls, moves, and inputs the keyboard, they try to reset the login time.
  • I’m using javascrip