private async Task <TokenDto> AuthenticateUser(long userId)
        {
            var token = tokenMaker.MakeToken(userId);
            await tokenRepo.AddRefreshToken(token.RefreshToken);

            return(token.ToDto(mapper));
        }
        private async Task <TokenDto> IssueTokenImpl(long userId)
        {
            var token = tokenMaker.MakeToken(userId);
            await tokenRepo.AddRefreshToken(token.RefreshToken);

            return(token.ToDto(mapper));
        }