Esempio n. 1
0
        public void LogoutActiveUser()
        {
            try
            {
                authApiInstance.LogOut();
            } catch (ApiException ex)
            {
                if (ex.ErrorCode == 401)
                {
                    // Ignore unauthorized, the user must have invalid session already.
                    Debug.WriteLine(ex);
                }
                else
                {
                    throw ex;
                }
            }

            mobileAppStorage.clearActiveAuth();
        }