onLogout

open override fun onLogout(onResult: (LogoutResponse) -> Unit)

Is called when the app sends a request to logout the current user. The client app needs to call the onResult function to set the LogoutResponse. Use LogoutResponse.SUCCESSFUL to signal a successful logout, LogoutResponse.UNAUTHORIZED if the user was not logged in at all and LogoutResponse.OTHER for all other errors.