How can i do auto logout if the app is inactive more than 60 minutes, I need to logout of the app if the app is inactive more than 60 minutes and it should ask for the login again. How do I do this, Can I use onresume and onpause event listeners to set the time interval.
you can try this https://github.com/HackedByChinese/ng-idle or even try and use the ng-monitor for tracking aciivity.
We are doing this with a backend service : our session tokens have a 10mins lifetime. When our token exceeds 10mins, the server sends an error to the app and I redirect to login page.