# Use Case 9.7 Log out of the app ## Overview | Aspect | Description | |------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **Summary** | The user logs out manually from the app or is logged out due to inactivity. | | **Goal** | Logging out of the app. | | **Preconditions** | *None* | | **Postconditions** | | | **Triggered by** | | | **Additional Documentation** | *None* | | **Possible errors** | *None* | | **Logical test cases** | | --- ## Flow | # | Description | Next | |---------|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------| | **1** | **PRIMARY SCENARIO** | | | **1.1** | **System determines (continuously) whether the user is (in)active** | | | 1.1a | Case: User is active within inactive_timeout (initially: 5 minutes) | End | | 1.1b | Case: User is inactive for more than inactive_timeout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) | | 1.1c | Case: User is inactive for more than warning_timeout (initially: 40 seconds) | 1.2 | | 1.1d | Case: App is backgrounded for less than background_timeout (initially: 5 minutes) | End | | 1.1e | Case: App is backgrounded for more than background_timeout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) | | **1.2** | **System displays prompt 'Inactivity warning'** | | | 1.2a | User selects Yes, continue | End | | 1.2b | User selects Logout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) | | 1.2c | Event: User does not respond within inactive_timeout | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) | | **2** | **USER LOGS OUT MANUALLY** | Go to: [UC2.3 Unlock the app](UC2.3_UnlockTheApp.md) |