React-Native: Solution for Session timeout application

Viewed 2476

How can i manage session timeout in react-native application (for both Android & iOs).

1. Scenario A:
- User logins in the app -> start timer
- User do nothing... -> after 1 time (e.g: 5') -> User should be logout
2. Scenario B:
- User logins in the app -> start timer
- User close app -> after 1 time (e.g: 10') -> User open app again -> User should be logout...

What is solution for this case or what is component how to catch any user actions (click, swipe) in the application ? Many thanks..

0 Answers
Related