Auto Logout
Set idle time to sign out.
In your
LinkerStudio/modules/authentication/common/constants/ConfigValues.ts
file, modify theTIME_USER_INACTIVE
property. By default, it is set to 10 minutes.
How to use?
In your
ProtectedStackNavigator
file, import the following block of code:
Add the
active
state, which has the valuestrue
orfalse
.true
for when the session is active, andfalse
for when the session should be closed.
Wrap your
Stack.Navigator
with theUserInactivity
component:
Last updated