Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

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

Open
praveen-akuthota-tm opened this issue Mar 29, 2021 · 0 comments

Comments

@praveen-akuthota-tm
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant