jkomyno / react-native-user-inactivity

Simple component that alerts when the user is inactive (i.e. when the App surface hasn't been touched for X ms)
MIT License
200 stars 56 forks source link

Timer doesnot get inactive once started? How to do it #47

Open amritaGupta-Qvt opened 3 years ago

amritaGupta-Qvt commented 3 years ago

I am implementing two-factor authentication in my application, I want users to log out after 10 mins when 2FA is disabled When 2FA gets enabled, the timer should restart or get inactive.

s-z-s commented 3 years ago

setActive(true) resets the timer