How to use the reset from another pages. #280
-
Hello! I'm using the react-idle-timer and I have an application with 4 pages, so if the user stay idle for a few minutes, a modal is show and the user can stay logged or can logout, on the function for stay logged I want to reset the timer, but I dont know how to do it, if someone can help me, i will appreciate. I'm using crossTab and startOnMount with true for now. For now I just refresh the page. Thanks for now! Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
When your user clicks the "stay logged in" button, just call the https://idletimer.dev/docs/getting-started/new#integrated-prompting |
Beta Was this translation helpful? Give feedback.
When your user clicks the "stay logged in" button, just call the
start()
,reset()
oractivate()
methods on your IdleTimer instance.https://idletimer.dev/docs/getting-started/new#integrated-prompting