Exemplo n.º 1
0
        public async Task DeAuthorizeTwitch(int userId)
        {
            var userInegration = _unitOfWork.UserIntegrations.GetById(userId, 1);

            try
            {
                await _twitchClient.DeAuthorize(userInegration.Token);

                _unitOfWork.UserIntegrations.Delete(userInegration);
                _unitOfWork.Commit();
            }
            catch (Exception)
            {
                throw;
            }
        }