Questions tagged [ng-idle]

an angularjs module to timed out the application when the screen is idle.

An angularjs module to timed out the application when the screen is idle as per the parametrised settings, by using the IdleProvider and KeepAliveProvider.

Can see the demo in the link

61 questions
79
votes
11 answers

Auto logout with Angularjs based on idle user

Is it possible to determine if a user is inactive and automatically log them out after say 10 minutes of inactivity using angularjs? I was trying to avoid using jQuery, but I cannot find any tutorials or articles on how to do this in angularjs. Any…
user2101411
  • 1,204
  • 2
  • 14
  • 33
8
votes
2 answers

ng-idle issue if multiple tabs/windows are opened in browser

I have a requirement where I have to logout user if it is idle for some time. I am using ng-idle 0.3.2. I am getting issue if there are more than one tabs/windows opened in browser. If I am working on a tab and the tabs which are not active…
A_J
  • 1,635
  • 1
  • 18
  • 31
7
votes
2 answers

AngularJS: Unknown provider: $idleProvider

A lot of other people with similar problems but the resolutions don't seem applicable to my specific issue of this. I am attempting to use the ngIdle (https://github.com/HackedByChinese/ng-idle) library but can't seem to get it to run without this…
user3407039
  • 1,285
  • 5
  • 25
  • 51
6
votes
1 answer

AngularJS injecting third party module ngIdle

I have a controller as shown below. (function () { "use strict"; var app = angular.module('Demo') .controller('MainController', ['$rootScope', '$scope', '$location', 'curUser',MainController]); function MainController($rootScope, $scope, …
TheLoneWolf91193
  • 415
  • 7
  • 19
5
votes
1 answer

NgIdle -Angular- How to stop the countdown value only when we click on dialog

I have implemented a session timeout module in my angular app which monitors idle time and opens the session time out dialog and shows the countdown value on the dialog. The problem is count down value is stopping when ever i moved my mouse on that…
Roster
  • 1,764
  • 6
  • 17
  • 36
5
votes
5 answers

Angular 6 ng-idle

I have an Angular Project which is working well and I'm implementing NG-IDLE and KeepAlive in order to keep the session fresh and to log a user out before the API session expires. My issue is that the ng-idle is also operating on the login page,…
Jim Grant
  • 1,128
  • 2
  • 13
  • 31
5
votes
2 answers

Having issues with ng-idle/core onIdleEnd & Mat-Dialog

There is an issue I have discovered with Ng-Idle, Material 6 nad Angular 6 "@ng-idle/core": "^6.0.0-beta.3" "@ng-idle/keepalive": "^6.0.0-beta.3" "@angular/core": "^6.1.9" "@angular/cdk": "^6.4.7" "@angular/material": "^6.4.7" The scenario when…
Andrew Lobban
  • 2,065
  • 2
  • 24
  • 38
4
votes
1 answer

Angular 2 - ng-idle timout even when user is interacting

My problem is the popup comes even if the user is interacting with the application. The popup should come only when the user is idle. session-timout.component.ts import { Component, OnInit } from '@angular/core'; import { Idle,…
abhy
  • 231
  • 6
  • 17
3
votes
0 answers

setInterval function not working properly when window/browser tab is minimized

I have written code to display countdown timer using sweet alert popup when user is idle (using ng-idle library). After countdown timer is 0, user will be auto logged out. For decreasing countdown timer I am using setInterval function (which is…
3
votes
0 answers

Idle state(using ngIdle) of user is interrupting while silent refresh of access token from Identity server using Iframe in angular 5

How my Application works. I am refreshing the token every 10 minutes from identity server using Iframe. I am using ngIdle in my application to track the idleness of a User. Call the refresh every 10 minutes setInterval(() =>{ …
3
votes
1 answer

import typings of package with different name

I am converting exiting project to typescript. The project is using a package ng-idle and it has @types package with name angular-idle and the file @types/angular-idle/index.d.ts contains declare module 'angular' { export namespace idle { …
harishr
  • 17,807
  • 9
  • 78
  • 125
3
votes
2 answers

how to pevent ng2-idle instantiating multiple times with each successful login

I have a problem where I set the idle to display a popup with a minute before session expiration. Then the session times out or the user logs out. The next time the user logs on, they now have 2 popups when there is a timeout. The user logs out and…
Machtyn
  • 2,982
  • 6
  • 38
  • 64
3
votes
1 answer

Angular 2 - Logout using ng2-idle

My problem is that when click on the logout button ng2-idle continues working. And to try to solve this problem I set again the setIdle and setTimeout functions for 1 second. However, when the user is transferred to the login screen, the app takes 1…
rafaelcb21
  • 12,422
  • 28
  • 62
  • 86
3
votes
1 answer

angular2 - user active and idle

I want to logout (or warn the user) when my user is idle after a period of time in my app. I am using localStroage provider in order to know if my user is logged in or not. I found this question and answer AngularJS $idleProvider and…
Noa
  • 337
  • 2
  • 4
  • 11
3
votes
2 answers

ng-idle is not working in IE9 and IE10

ng-idle is not working in IE9 and IE10. Suppose if you leave the mouse pointer on the page, it is not considering as the user is inactive. When you keep the mouse pointer is outside of the page it is working. Please provide solution for this. Use…
1
2 3 4 5