Log out users
You can log out users programmatically when needed. For example, you can log out users in the following situations:
- When a user is inactive after the idle time limit
- When you use a custom login instead of the default login
This example shows how to log out a user account when an idle timer is triggered, if that is something your app requires or supports.
Objective-C
Swift