I am building an angularjs/web-api application. It uses OAuth token based authentication. I have a requirement to implement a session timeout based on inactivity. I am using ng-idle for the client side to implement the effect.I am building an angularjs/web-api application.