@wekas wrote:
I am using the code below to auto log out a user when the token is due to expire. It works fine on the Android device for short periods of time (5 mins) but when I test for the hour needed it does not log out the user.
Also the buttons are unresponsive after coming back to the app.Any ideas why this is not working?
private autoLogout(duration: number) { if (this.activeLogoutTimer) { clearTimeout(this.activeLogoutTimer); } this.activeLogoutTimer = setTimeout(() => { this.logout(); }, duration); }
Posts: 2
Participants: 2