Example #1
0
        public async Task <UserToken> TakeRefreshTokenAsync(string token)
        {
            var refreshToken = await _userTokenRepository.FindByTokenAsync(token);


            if (refreshToken != null)
            {
                _userTokenRepository.Remove(refreshToken);
                await _unitOfWork.CompleteAsync();
            }


            return(refreshToken);
        }