logout

open fun logout(account: Account? = userAccountManager.currentAccount, frontActivity: Activity?, showLoginPage: Boolean = true, reason: OAuth2.LogoutReason = UNKNOWN)

Destroys the stored authentication credentials (removes the account) and, if requested, restarts the app.

Parameters

account

The user account to logout. Defaults to the current user account

frontActivity

The front activity

showLoginPage

If true, displays the login page after removing the account

reason

The reason for the logout.