Пример #1
0
        public async Task <string> Login(string username, string password)
        {
            var user = await _userRepository.ValidateUserAsync(username, _hashString.Generate(password));

            var token = _jwtTokenHandler.Generate(user);

            return(token);
        }