I am trying to implement session time out logic in my application. Application session is 60mins and I need to show user a message to extend if active session exceeds 60 minutes. Based on the session expiry minutes and user idle minutes I need to calculate the session expiry minutes.
I could see there are many implementation to get the user idle time out. However, I could not see any implementation to get the user idle minutes.
I am following the below implementation https://www.chunho-ling.com/2021/07/05/angular-idle-timeout-checking/
Can anyone shed some light on getting the idle minutes.