Skip to content

Idle config value ignored (always set to 60 minutes) #137

@mpscheidt

Description

@mpscheidt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions