In the current latest version 3.0.0 the config value for idle seems to be ignored. Instead of the configured value, the idle value is always 3600 seconds minus the timeout value.
For example, given the following:
UserIdleModule.forRoot({ idle: 7777, timeout: 333, ping: 0 }),
results in idle being set to 3600 - 333 = 3267 when being queried by this.userIdle.getConfigValue();:
this.userIdle.getConfigValue();
{idle: 3267, idleSensitivity: 1, timeout: 333, ping: 120}
Another example: given
UserIdleModule.forRoot({ idle: 300, timeout: 222, ping: 0 }),
results in:
this.userIdle.getConfigValue();
{idle: 3378, idleSensitivity: 1, timeout: 222, ping: 120}
Again, the idle value is 3600 minus the timeout value: 3378.
So the configured idle value given in UserIdleModule.forRoot(..) is ignored.
In the current latest version 3.0.0 the config value for
idleseems to be ignored. Instead of the configured value, theidlevalue is always 3600 seconds minus thetimeoutvalue.For example, given the following:
results in
idlebeing set to3600 - 333 = 3267when being queried bythis.userIdle.getConfigValue();:Another example: given
results in:
Again, the
idlevalue is3600minus thetimeoutvalue:3378.So the configured
idlevalue given inUserIdleModule.forRoot(..)is ignored.