public async Task <IActionResult> Authenticate(AuthenticateInput input)
        {
            var user = await _userService.GetUser(input.UserName, input.HashedPassword);

            if (user == null)
            {
                return(Unauthorized());
            }
            var expiration = DateTime.Now.AddHours(1);
            var token      = _jwtManager.GenerateJwtToken(user.UserName, expiration);

            return(Ok(new AuthenticateResponse()
            {
                Token = token,
                Expiration = expiration
            }));
        }