grbsk/ng2-idle-example

ERROR Error: 'seconds' can only be 'false' or a positive number.

Opened this issue · 0 comments

I have integrated the @ng-idle/keepalive in my angular 9 project and i am getting the below error.

"ERROR Error: 'seconds' can only be 'false' or a positive number."

Correct integer value is passed to the setIdle as below;

this.idleTimeout = environment.idleTimeoutInSeconds;
// sets an idle timeout in seconds.
idle.setIdle(Number(this.idleTimeout));

Can you please help me getting this resolved.