public IActionResult Login()

in Source/Services/Tailwind.Traders.Login.Api/Controllers/AuthController.cs [26:37]


        public IActionResult Login([FromBody] TokenRequestModel request)
        {

            if (String.IsNullOrWhiteSpace(request.Username) || String.IsNullOrWhiteSpace(request.Password) || request.GrantType != "password")
            {
                return BadRequest("Could not verify username and password");
            }

           var token = _tokenHandlerService.SignIn(request.Username);

           return Ok(token);
        }