Logging out users
A user is treated as logged in as long as the user has an access token for the operation to be executed. To log out the user, the access token must be removed.
You can remove the access token by calling the logout function on the UserClient
. The Android SDK will also send a request to the IDAAS-core to remove the access token to ensure the token is invalidated both on the client as server side. If a refresh token is stored on the device, it will remain after the logout action, so it can be used to log in again later.
Example code: to log out a user