public async Task <Guid> Update(Guid token, string ipAddress)
        {
            var newToken      = Guid.NewGuid();
            var refreshTokens = await refreshTokenRepository.GetBytoken(token);

            refreshTokens.Token          = newToken;
            refreshTokens.ExpireDateTime = DateTime.Now.AddDays(1);

            await refreshTokenRepository.SaveAsync();

            return(newToken);
        }
        public async Task <RefreshToken> GetByRefreshToken(Guid refreshToken)
        {
            var result = await refreshTokenRepository.GetBytoken(refreshToken);

            return(result);
        }